Function at 0x402ba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427371
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x434f14]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x154], ebx
jne 0x40377b
mov eax, dword [esi + 0x150]
mov dword [esp + 0x34], ebx
cmp eax, ebx
jne 0x402bf5
xor eax, eax
jmp 0x402bf8
mov eax, dword [eax + 0x20]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xc00000
cmp eax, 0xc00000
jne 0x402c15
mov dword [esp + 0x34], 1
mov eax, dword [esi + 0xc]
push ebx
lea ecx, [esp + 0x94]
push ecx
push ebx
push 0x30
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x98]
sub eax, dword [esp + 0x90]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x9c]
sub eax, dword [esp + 0x94]
push 0xa
mov dword [esp + 0x7c], eax
call edi
cdq
sub eax, edx
sar eax, 1
push 9
mov dword [esp + 0x28], eax
call edi
cdq
sub eax, edx
sar eax, 1
push 0xa
mov dword [esp + 0x3c], eax
call edi
cdq
sub eax, edx
sar eax, 1
push 0xa
mov dword [esp + 0x34], eax
call edi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x150]
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0040a0dc
mov edi, eax
mov ecx, dword [edi + 8]
lea eax, [esp + 0xb0]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [esi + 0x150]
mov edx, dword [edi + 4]
mov eax, dword [eax + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0xc]
cmp eax, ebx
mov dword [esp + 0x18], ebx
jle 0x402d93
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00401ab0
mov edi, eax
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0040a0dc
mov ebp, eax
call fcn.0040fc5f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x402dd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
mov dword [esp + 0x18c], 0
call fcn.0040e13e
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jle 0x402d56
mov ebx, eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x188], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esi + 0xc]
mov dword [esp + 0x18], eax
jl 0x402cd9
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xc4]
add eax, 0xa
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x150]
lea edx, [ecx + ebx + 0x1e]
mov ecx, dword [eax + 0x20]
push ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0040a0dc
mov edi, eax
test edi, edi
jne 0x402dda
xor ebp, ebp
jmp 0x402ddd
push 0x80004005
call fcn.00401800
mov ebp, dword [edi + 4]
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.GDI32.dll_BeginPath]
fild dword [esp + 0x28]
fmul qword [0x429c68]
call fcn.00417650
mov ebx, eax
push ebx
push 0
lea eax, [esp + 0x54]
push eax
mov ecx, edi
call fcn.00409f72
push ebx
push 0x26
mov ecx, edi
call fcn.00409bb0
push 0
push 0x13
mov ecx, edi
call fcn.00409bb0
push ebx
push 0
mov ecx, edi
call fcn.00409bb0
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.GDI32.dll_EndPath]
push 0x26
push 0x26
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push ebp
call dword [sym.imp.GDI32.dll_PathToRegion]
push 0x429c14
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.00402ae0
mov edx, dword [esp + 0x18]
push 0x11
mov dword [esp + 0x18c], 1
mov dword [esp + 0x50], edx
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov eax, dword [esi + 0x150]
mov ecx, dword [esp + 0x50]
push 0xf1b475
push 0x663400
push 0xe8e7e6
push 2
push 0x27f9
push eax
push ebx
xor eax, eax
push eax
push eax
push 0x50010000
push ecx
lea ecx, [esi + 0x20]
call fcn.00405e00
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.GDI32.dll_BeginPath]
push 0
push 0
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.00409f72
push 0
push 0x26
mov ecx, edi
call fcn.00409bb0
push 0x13
push 0x13
mov ecx, edi
call fcn.00409bb0
push 0
push 0
mov ecx, edi
call fcn.00409bb0
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.GDI32.dll_EndPath]
push 0x26
push 0x26
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push ebp
call dword [sym.imp.GDI32.dll_PathToRegion]
mov edx, dword [esp + 0x18]
push 0x11
mov ebx, eax
xor ebp, ebp
mov dword [esp + 0x50], edx
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov eax, dword [esi + 0x150]
mov ecx, dword [esp + 0x50]
push 0xf1b475
push 0x663400
push 0xe8e7e6
push 2
push 0x27fa
push eax
push ebx
xor eax, eax
push eax
push ebp
push 0x50010000
push ecx
lea ecx, [esi + 0xb8]
call fcn.00405e00
mov eax, dword [esi + 0x150]
mov edx, dword [edi + 4]
mov eax, dword [eax + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x188], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x9c]
sub eax, dword [esp + 0x94]
mov ebx, dword [esp + 0x48]
sub eax, 0x28
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x28]
add eax, 5
add ebx, 2
imul ebx, eax
cmp dword [esp + 0x34], 0
mov dword [esp + 0x1c], eax
je 0x402fd3
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add ebx, eax
mov eax, dword [esi + 0x150]
test eax, eax
je 0x402fe0
mov eax, dword [eax + 0x20]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x800000
je 0x402ffb
push 6
call dword [sym.imp.USER32.dll_GetSystemMetrics]
lea ebx, [ebx + eax*2]
mov ecx, dword [esi + 0x150]
push 0x27f8
call fcn.00408aa7
mov edx, dword [eax + 0x20]
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x64]
push ecx
push edx
call ebp
mov edi, dword [esp + 0x70]
sub edi, dword [esp + 0x68]
mov ecx, dword [esi + 0x150]
add edi, 0xa
push 0x27f7
mov dword [esp + 0x50], edi
call fcn.00408aa7
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x54]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
lea ecx, [esp + 0xec]
sub eax, 0xa
mov dword [esp + 0x48], eax
add eax, edi
add eax, dword [esp + 0x44]
mov dword [esp + 0x7c], 0
add eax, dword [esp + 0x30]
add ebx, eax
call fcn.00401640
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x18c], 2
call dword [esp + 0x16c]
cmp dword [esp + 0x7c], 0
je 0x40309c
mov ebp, dword [esp + 0x90]
jmp 0x4030b3
mov ecx, dword [esp + 0x90]
sub ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x24]
lea ebp, [ecx + edx - 0x14]
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov ecx, eax
sub ecx, ebx
sub ecx, dword [esp + 0x38]
add edx, 0x14
add ecx, dword [esp + 0x78]
cmp edx, 0x5f
mov dword [esp + 0x18], ecx
lea edi, [ecx + ebx]
mov dword [esp + 0x24], edx
jg 0x4030e5
mov dword [esp + 0x24], 0x5f
mov edx, dword [esp + 0x74]
cmp ebx, edx
push 0x10
jg 0x4033ab
mov eax, dword [esp + 0x28]
push ebx
push eax
push ecx
mov ecx, dword [esi + 0x150]
push ebp
push 0x437f18
call fcn.00408cdb
cmp dword [esp + 0x34], 0
jne 0x403125
mov ecx, dword [esi + 0x150]
push 0xa
push 0xa
push ecx
call fcn.00406ad0
add esp, 0xc
cmp dword [esp + 0x34], 0
mov ebx, dword [esp + 0x18]
je 0x40313e
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
add ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x150]
test eax, eax
je 0x40314b
mov eax, dword [eax + 0x20]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x800000
je 0x403166
push 6
call dword [sym.imp.USER32.dll_GetSystemMetrics]
lea ebx, [ebx + eax*2]
mov eax, dword [esi + 0x150]
mov eax, dword [eax + 0x20]
add ebx, dword [esp + 0x44]
lea edx, [esp + 0x80]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
mov dword [esp + 0x20], ebx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x80]
sar ecx, 1
cdq
sub eax, edx
sar eax, 1
sub eax, ecx
add eax, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x150]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esi + 0x150]
push 0x27f8
call fcn.00408aa7
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
sub edx, dword [esp + 0x64]
push 4
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
add ecx, 0xa
push ecx
push edx
push 0x437f70
mov ecx, eax
mov dword [esp + 0x54], eax
call fcn.00408cdb
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x172
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
sub edi, dword [esp + 0x48]
cdq
sub edi, dword [esp + 0x30]
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x80]
sar ecx, 1
cdq
sub eax, edx
sar eax, 1
sub eax, ecx
add eax, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x150]
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], edi
mov eax, dword [eax + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esi + 0x150]
push 0x27f7
call fcn.00408aa7
mov edi, eax
mov ecx, dword [esp + 0x60]
sub ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x54]
mov eax, dword [esp + 0x20]
push 4
push ecx
mov ecx, dword [esp + 0x24]
push edx
add eax, 0xfffffff6
push eax
push ecx
push 0x437f70
mov ecx, edi
call fcn.00408cdb
mov edx, dword [edi + 0x20]
push 0
push 0
push 0x172
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x4c]
lea edi, [ebx + eax + 5]
push edi
push ebp
lea ebx, [esi + 0x20]
push ebx
mov ecx, esi
mov dword [esp + 0x3c], edi
call fcn.00401ae0
push ebx
mov ecx, esi
call fcn.00401780
xor ebx, ebx
cmp dword [esi + 0xc], ebx
jle 0x403369
push ebx
mov ecx, esi
call fcn.00401ab0
mov ecx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x30]
add ecx, 5
add eax, ecx
lea ecx, [ebp + 0xa]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x150]
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
push 1
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00408bf6
mov ecx, dword [edi + 0x20]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push edi
push ebx
mov ecx, esi
call fcn.00401ac0
inc ebx
cmp ebx, dword [esi + 0xc]
jl 0x4032e6
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
lea edi, [edi + eax + 5]
push edi
push ebp
lea edi, [esi + 0xb8]
push edi
mov ecx, esi
call fcn.00401ae0
push edi
mov ecx, esi
call fcn.00401780
mov eax, dword [esi + 0xc]
mov dword [esi + 0x158], 0
mov dword [esi + 0x15c], eax
mov dword [esi + 0x160], 1
jmp 0x403742
mov ecx, dword [esp + 0x28]
sub eax, edx
sub eax, dword [esp + 0x3c]
push edx
add eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esi + 0x150]
push eax
push ebp
push 0x437f18
mov dword [esp + 0x30], eax
call fcn.00408cdb
cmp dword [esp + 0x34], 0
jne 0x4033ee
mov edx, dword [esi + 0x150]
push 0x19
push 0x19
push edx
call fcn.00406ad0
add esp, 0xc
cmp dword [esp + 0x34], 0
mov ebx, dword [esp + 0x74]
je 0x403403
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub ebx, eax
mov eax, dword [esi + 0x150]
test eax, eax
je 0x403410
mov eax, dword [eax + 0x20]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x800000
je 0x40342d
push 6
call dword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
lea ebx, [ebx + eax*2]
mov ecx, dword [esi + 0x150]
push 0x27f8
call fcn.00408aa7
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x80]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x8c]
mov ecx, dword [esi + 0x150]
push 0x27f7
add ebx, eax
call fcn.00408aa7
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x80]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x84]
lea eax, [ecx + ecx]
sub edx, eax
sub edx, dword [esp + 0x8c]
sub edx, dword [esp + 0x44]
sub edx, dword [esp + 0x30]
add ebx, edx
mov eax, ebx
cdq
idiv ecx
cmp dword [esp + 0x34], 0
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
je 0x4034c4
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
add ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x150]
test eax, eax
je 0x4034d1
mov eax, dword [eax + 0x20]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x800000
je 0x4034ec
push 6
call dword [sym.imp.USER32.dll_GetSystemMetrics]
lea ebx, [ebx + eax*2]
mov eax, dword [esi + 0x150]
mov edx, dword [eax + 0x20]
add ebx, dword [esp + 0x44]
lea ecx, [esp + 0xa0]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0xa8]
sub eax, dword [esp + 0xa0]
mov dword [esp + 0x40], ebx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
sar ecx, 1
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [esi + 0x150]
add ecx, ebp
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], ecx
mov eax, dword [eax + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esi + 0x150]
push 0x27f8
call fcn.00408aa7
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
sub edx, dword [esp + 0x64]
push 4
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push ecx
add edx, 0x14
push edx
push 0x437f70
mov ecx, eax
mov dword [esp + 0x34], eax
call fcn.00408cdb
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x172
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0xa8]
sub eax, dword [esp + 0xa0]
sub edi, dword [esp + 0x48]
cdq
sub edi, dword [esp + 0x30]
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
sar ecx, 1
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [esi + 0x150]
add ecx, ebp
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edi
mov eax, dword [eax + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esi + 0x150]
push 0x27f7
call fcn.00408aa7
mov edi, eax
mov ecx, dword [esp + 0x60]
sub ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
push 4
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
push 0x437f70
mov ecx, edi
call fcn.00408cdb
mov edx, dword [edi + 0x20]
push 0
push 0
push 0x172
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x4c]
lea edi, [ebx + eax + 5]
push edi
push ebp
lea eax, [esi + 0x20]
push eax
mov ecx, esi
mov dword [esp + 0x30], edi
call fcn.00401ae0
xor ebx, ebx
cmp dword [esp + 0x38], ebx
jle 0x4036e6
push ebx
mov ecx, esi
call fcn.00401ab0
mov ecx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x24]
add ecx, 5
add eax, ecx
lea ecx, [ebp + 0xa]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x150]
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
push 1
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00408bf6
mov ecx, dword [edi + 0x20]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push edi
push ebx
mov ecx, esi
call fcn.00401ac0
inc ebx
cmp ebx, dword [esp + 0x38]
jl 0x403662
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea edi, [edi + eax + 5]
push edi
push ebp
lea eax, [esi + 0xb8]
push eax
mov ecx, esi
call fcn.00401ae0
mov edi, dword [esp + 0x38]
xor eax, eax
cmp edi, dword [esi + 0xc]
mov dword [esi + 0x158], eax
mov dword [esi + 0x15c], edi
mov dword [esi + 0x160], eax
jge 0x403742
jmp 0x403720
push edi
mov ecx, esi
call fcn.00401ab0
mov ebx, eax
push 0
mov ecx, ebx
call fcn.00408c36
push ebx
push edi
mov ecx, esi
call fcn.00401ac0
inc edi
cmp edi, dword [esi + 0xc]
jl 0x403720
lea eax, [esi + 0x20]
push eax
mov ecx, esi
call fcn.00401780
cmp dword [esi + 0x160], 0
je 0x403764
lea eax, [esi + 0xb8]
push eax
mov ecx, esi
call fcn.00401780
lea ecx, [esp + 0xec]
mov dword [esp + 0x188], 0xffffffff
call fcn.00401150
mov eax, dword [esi + 0x154]
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret