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

Disassembly:
jmp 0x425e40
push 0xffffffffffffffff
push 0x54c680
mov eax, dword fs:[0]
push eax
sub esp, 0x4f8
mov eax, dword [0x5c1d10]
xor eax, esp
mov dword [esp + 0x4f4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c1d10]
xor eax, esp
push eax
lea eax, [esp + 0x50c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x51c]
mov esi, ecx
cmp dword [esi + 0xbc], 1
jb 0x42671c
xor ebx, ebx
cmp dword [esi + 0x98], ebx
je 0x42671c
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x8c]
mov edx, dword [esi + 0x90]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x94]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
call fcn.00403878
mov dword [esp + 0x514], ebx
mov eax, dword [esi + 0x6c]
lea ebp, [eax + eax*2]
push ebp
lea ecx, [esp + 0x10c]
push 0x20
push ecx
mov dword [esp + 0x30], ebx
call fcn.004f4420
mov eax, dword [esi + 0x10c]
add esp, 0xc
push eax
mov byte [esp + ebp + 0x10b], bl
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x6c]
call fcn.004b59f0
mov edx, dword [esi + 0x70]
sub edx, dword [esi + 0xc8]
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x74]
add eax, edx
lea edx, [ecx + eax - 5]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], edx
mov edx, dword [edi + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esi + 0x64]
add eax, dword [esp + 0x34]
mov ebx, dword [esi + 0x164]
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], ebx
jle 0x42609f
test ebp, ebp
jl 0x426094
mov eax, dword [esi + 0x164]
test eax, eax
je 0x426094
add eax, 0xffffffff
cmp ebp, eax
jg 0x426094
cmp ebp, dword [esi + 0x178]
jge 0x4261b2
cmp ebp, dword [esi + 0x18c]
mov ecx, dword [esi + 0x174]
mov ecx, dword [ecx + ebp*4]
jge 0x4261b2
mov edx, dword [esi + 0x188]
mov eax, dword [edx + ebp*4]
lea edx, [esp + 0xc8]
push edx
push eax
push ecx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.00404089
test eax, eax
mov dword [esp + 0x40], eax
je 0x426094
mov ecx, dword [esi + 0xfc]
push ecx
lea ecx, [esp + 0xc4]
call fcn.004b5f93
mov byte [esp + 0x514], 1
mov edx, dword [esi + 0x104]
push edx
push 1
push 0
lea ecx, [esp + 0xc4]
call fcn.004b5efb
mov byte [esp + 0x514], 2
lea eax, [esp + 0xc0]
push eax
mov ecx, edi
call fcn.004b5b89
lea ecx, [esp + 0xb8]
push ecx
mov ecx, edi
mov dword [esp + 0x28], eax
call fcn.004b5b43
mov edx, dword [esp + 0x40]
mov ecx, dword [edi + 4]
mov ebx, eax
push edx
lea eax, [esp + 0xcc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_Polygon]
cmp dword [esp + 0x24], 0
je 0x42605c
mov edx, dword [esp + 0x24]
push edx
mov ecx, edi
call fcn.004b5b89
test ebx, ebx
je 0x426068
push ebx
mov ecx, edi
call fcn.004b5b43
mov byte [esp + 0x514], 1
lea ecx, [esp + 0xb8]
call fcn.00403350
mov byte [esp + 0x514], 0
lea ecx, [esp + 0xc0]
call fcn.0040380a
mov ebx, dword [esp + 0x1c]
add ebp, 1
cmp ebp, ebx
jl 0x425f67
mov eax, dword [esi + 0xa8]
cmp eax, 0xffffffff
je 0x4261b7
mov ecx, dword [esi + 0xa4]
cmp ecx, 0xffffffff
je 0x4261b7
lea edx, [esp + 0xc8]
push edx
push ecx
push eax
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.00404089
mov ecx, dword [esi + 0xfc]
mov ebx, eax
push ecx
lea ecx, [esp + 0x84]
mov dword [esp + 0x44], ebx
call fcn.004b5f93
mov byte [esp + 0x514], 3
mov edx, dword [esi + 0x104]
push edx
push 1
push 0
lea ecx, [esp + 0x94]
call fcn.004b5efb
mov byte [esp + 0x514], 4
lea eax, [esp + 0x80]
push eax
mov ecx, edi
call fcn.004b5b89
lea ecx, [esp + 0x88]
mov ebp, eax
push ecx
mov ecx, edi
mov dword [esp + 0x28], ebp
call fcn.004b5b43
push ebx
lea edx, [esp + 0xcc]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_Polygon]
test ebp, ebp
je 0x42615a
push ebp
mov ecx, edi
call fcn.004b5b89
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42616a
push eax
mov ecx, edi
call fcn.004b5b43
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0xa8]
add ecx, eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0xa4]
add ecx, eax
mov dword [esp + 0x44], ecx
mov byte [esp + 0x514], 3
lea ecx, [esp + 0x88]
call fcn.00403350
mov byte [esp + 0x514], 0
lea ecx, [esp + 0x80]
call fcn.0040380a
jmp 0x4261d0
call fcn.004b3abd
mov ecx, dword [esi + 0x98]
lea edx, [ecx + eax]
mov eax, dword [esi + 0xa4]
add eax, ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x44], eax
mov edx, dword [esi + 0xac]
cmp edx, 0xffffffff
je 0x4261f6
mov ecx, dword [esi + 0xb0]
cmp ecx, 0xffffffff
je 0x4261f6
mov eax, dword [esi + 0x98]
add edx, eax
mov dword [esp + 0x48], edx
add eax, ecx
jmp 0x4261fc
xor eax, eax
mov dword [esp + 0x48], eax
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x50], eax
imul edx, ecx
mov eax, dword [esi + 0x60]
imul eax, ecx
mov ecx, dword [esi + 0xbc]
add eax, edx
cmp eax, ecx
jb 0x426221
lea eax, [ecx - 1]
mov ecx, dword [esi + 0x98]
lea ebp, [ecx + edx]
lea ebx, [ecx + eax]
push 1
mov ecx, edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x5c], ebx
call fcn.004b47e8
lea eax, [ebx + 1]
cmp ebp, eax
jae 0x426668
lea esp, [esp]
mov edx, dword [esi + 0x6c]
add edx, ebp
xor ecx, ecx
cmp edx, ebx
jbe 0x42625d
mov edx, eax
cmp ebp, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ecx
jb 0x426284
cmp ebp, dword [esp + 0x50]
ja 0x426284
lea eax, [esp + 0x108]
mov dword [esp + 0x18], eax
cmp ebp, dword [esp + 0x4c]
jb 0x42629b
cmp ebp, dword [esp + 0x44]
ja 0x42629b
lea eax, [esp + 0x108]
mov dword [esp + 0x28], eax
cmp ebp, edx
lea eax, [esp + 0x108]
jae 0x426336
lea ecx, [esp + 0x10a]
cmp ebp, dword [esp + 0x48]
jne 0x4262bb
mov dword [esp + 0x18], eax
cmp ebp, dword [esp + 0x50]
jne 0x4262d7
cmp dword [esp + 0x18], 0
jne 0x4262d3
lea ebx, [esp + 0x108]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], ecx
cmp ebp, dword [esp + 0x4c]
jne 0x4262e1
mov dword [esp + 0x28], eax
cmp ebp, dword [esp + 0x44]
jne 0x4262fd
cmp dword [esp + 0x28], 0
jne 0x4262f9
lea ebx, [esp + 0x108]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ecx
movzx ebx, byte [ebp]
shr ebx, 4
movzx ebx, byte [ebx + str.0123456789ABCDEF]
mov byte [eax], bl
movzx ebx, byte [ebp]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789ABCDEF]
add eax, 1
add ecx, 1
mov byte [eax], bl
add ebp, 1
add eax, 2
add ecx, 2
cmp ebp, edx
jb 0x4262b1
mov dword [esp + 0x1c], ebp
xor ecx, ecx
sub eax, 1
cmp dword [esp + 0x20], ecx
mov byte [eax], 0
jne 0x426346
mov dword [esp + 0x20], eax
cmp dword [esp + 0x2c], ecx
jne 0x426350
mov dword [esp + 0x2c], eax
mov edx, dword [edi]
mov eax, dword [esi + 0x108]
mov edx, dword [edx + 0x30]
push eax
mov ecx, edi
call edx
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x64]
call fcn.00404133
mov byte [esp + 0x514], 5
mov eax, dword [esp + 0x60]
mov ecx, dword [eax - 0xc]
mov edx, dword [edi]
push 0x820
lea ebx, [esp + 0x34]
push ebx
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
mov byte [esp + 0x514], 0
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4263bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x426494
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], ecx
lea ecx, [esp + 0x108]
mov edx, ebx
sub edx, ecx
imul edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x100]
add edx, eax
mov dword [esp + 0x90], eax
mov eax, dword [edi]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x20]
mov byte [edx], 0
mov edx, dword [eax + 0x30]
push ecx
mov ecx, edi
call edx
mov ecx, dword [esi + 0xfc]
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
push ecx
mov ecx, edi
call edx
push ebx
lea ecx, [esp + 0x68]
call fcn.00404133
mov byte [esp + 0x514], 7
mov eax, dword [esp + 0x64]
mov ecx, dword [eax - 0xc]
mov edx, dword [edi]
push 0x820
lea ebx, [esp + 0x94]
push ebx
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
mov byte [esp + 0x514], 0
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42648d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov byte [ecx], 0x20
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x426648
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.004bb345
cmp eax, esi
sete al
test al, al
mov byte [esp + 0x17], al
jne 0x4264c8
mov ecx, esi
call fcn.004bf70c
test al, 4
je 0x426648
mov eax, dword [esp + 0x3c]
mov ebp, dword [esi + 0x68]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x7c], eax
mov eax, ebx
lea ebx, [esp + 0x108]
sub eax, ebx
imul eax, ebp
mov ebp, dword [esi + 0x6c]
add eax, dword [esp + 0x30]
lea ebx, [ebp + ebp*2]
sub ebx, dword [esp + 0x2c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x38]
lea ebx, [esp + ebx + 0x107]
imul ebx, dword [esi + 0x68]
sub edx, ebx
mov bl, byte [esp + 0x17]
mov dword [esp + 0xac], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x7c]
add ecx, 1
add edx, 1
test bl, bl
mov dword [esp + 0xb4], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], edx
je 0x426556
mov eax, dword [esi + 0x120]
jmp 0x42655c
mov eax, dword [esi + 0x118]
push eax
lea ecx, [esp + 0xa4]
call fcn.004b5f93
mov byte [esp + 0x514], 9
test eax, eax
je 0x426578
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
push eax
lea ecx, [esp + 0xac]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov byte [esp + 0x514], 0
mov dword [esp + 0xa0], vtable.CBrush.0
mov byte [esp + 0x514], 0
lea ecx, [esp + 0xa0]
call fcn.0040410b
test bl, bl
mov ebp, dword [esp + 0x2c]
mov byte [ebp], 0
je 0x4265c6
mov eax, dword [esi + 0x11c]
jmp 0x4265cc
mov eax, dword [esi + 0x114]
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [esi + 0xfc]
mov edx, dword [edx + 0x2c]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x58]
call fcn.00404133
mov byte [esp + 0x514], 0xb
mov eax, dword [esp + 0x54]
mov ecx, dword [eax - 0xc]
mov edx, dword [edi]
push 0x820
lea ebx, [esp + 0x74]
push ebx
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
mov byte [esp + 0x514], 0
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426640
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp], 0x20
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi + 0x64]
push eax
push 0
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ebx, dword [esp + 0x58]
lea eax, [ebx + 1]
cmp ebp, eax
jb 0x426250
or ebx, 0xffffffff
cmp dword [esi + 0xa8], ebx
je 0x4266fd
cmp dword [esi + 0xa4], ebx
je 0x4266fd
mov edx, dword [esi + 0x104]
push edx
push 1
push 0
lea ecx, [esp + 0x64]
call fcn.004b5efb
mov byte [esp + 0x514], 0xd
lea eax, [esp + 0x58]
push eax
mov ecx, edi
call fcn.004b5b43
mov ecx, dword [esp + 0x40]
push ecx
lea edx, [esp + 0xcc]
mov esi, eax
mov eax, dword [edi + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_Polyline]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4266d0
push eax
mov ecx, edi
call fcn.004b5b89
test esi, esi
je 0x4266dc
push esi
mov ecx, edi
call fcn.004b5b43
mov byte [esp + 0x514], 0
mov dword [esp + 0x58], vtable.CPen.0
mov byte [esp + 0x514], 0
lea ecx, [esp + 0x58]
call fcn.0040410b
mov dword [esp + 0x514], ebx
mov dword [esp + 0x68], vtable.CBrush.0
mov dword [esp + 0x514], ebx
lea ecx, [esp + 0x68]
call fcn.0040410b
mov ecx, dword [esp + 0x50c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4f4]
xor ecx, esp
call fcn.004f409d
add esp, 0x504
ret 4