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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5881b0
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x5e5c10]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x5e5c10]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], edi
cmp dword [esi + 0x114], ebx
je 0x42110b
mov eax, dword [edi]
mov edx, dword [eax + 0x50]
lea ecx, [esp + 0x98]
push ecx
mov ecx, edi
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
call edx
test eax, eax
je 0x42110b
mov ecx, esi
call fcn.0041eda0
lea ecx, [esp + 0x54]
call fcn.0040bfc0
mov dword [esp + 0xb8], ebx
mov eax, dword [esi + 0xac]
push eax
lea ecx, [esp + 0x58]
call fcn.0041cd10
cmp eax, 0x80004005
je 0x42081a
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x88]
push eax
push ecx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esi + 0xb0], ebx
je 0x4207c5
mov eax, dword [esp + 0x60]
add eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x64]
add dword [esp + 0x94], ecx
mov dword [esp + 0x90], eax
mov esi, dword [esp + 0x28]
push 3
mov ecx, esi
call fcn.00459e7b
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x94]
mov esi, dword [esi + 4]
mov ebx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x94]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x90]
sub edx, ecx
push edx
push eax
mov eax, esi
push ecx
lea esi, [esp + 0x68]
call fcn.0041c010
mov ecx, esi
call fcn.0040be90
mov esi, dword [esp + 0x30]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00426860
mov dword [esp + 0x2c], eax
call fcn.004268b0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x34]
push eax
call fcn.00423a90
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x48]
mov edx, esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.00423ba0
cmp dword [esi + 0xdc], ebx
je 0x42087b
lea edi, [esp + 0x88]
mov eax, esi
call fcn.0041ec20
xor eax, eax
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x14], eax
cmp dword [esi + 0x164], ebx
jle 0x4209df
test eax, eax
js 0x4209c8
cmp eax, dword [esi + 0x160]
jge 0x4209c8
cmp eax, dword [esi + 0x178]
jge 0x42102f
mov edx, dword [esi + 0x174]
mov eax, dword [edx + eax*4]
test eax, eax
jle 0x4209c8
mov ecx, dword [esp + 0x24]
inc ecx
xor ebx, ebx
lea eax, [eax + ecx - 1]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0xffffffff
cmp dword [esi + 0x16c], ebx
jle 0x4209c8
lea ecx, [ecx]
test ebx, ebx
js 0x4209bb
cmp ebx, dword [esi + 0x168]
jge 0x4209bb
mov ecx, dword [esi + 0x4fc]
mov eax, dword [ecx + ebx*4]
lea edx, [ecx + ebx*4]
test eax, eax
js 0x42102f
mov edi, dword [esi + 0x18c]
cmp eax, edi
jge 0x42102f
mov ecx, dword [esi + 0x188]
cmp dword [ecx + eax*4], 0
jle 0x4209bb
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [edx]
test eax, eax
js 0x42102f
cmp eax, edi
jge 0x42102f
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x18]
lea edx, [eax + ecx - 1]
mov eax, dword [esp + 0x14]
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.0041d160
mov edi, eax
test edi, edi
je 0x4209bb
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x34]
push ebx
push eax
mov ecx, edi
call edx
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
mov edx, dword [edx + 0xb8]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
push ebx
push eax
push ecx
mov ecx, edi
call edx
inc ebx
cmp ebx, dword [esi + 0x16c]
jl 0x4208f0
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esi + 0x164]
jl 0x420895
xor ebx, ebx
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x90]
jg 0x420b80
lea ecx, [ecx]
cmp dword [esp + 0x14], 0
jl 0x420b68
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x160]
jge 0x420b68
cmp eax, dword [esi + 0x178]
jge 0x42102f
mov ecx, dword [esi + 0x174]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
jle 0x420b68
mov eax, dword [esp + 0x24]
inc eax
lea ecx, [ecx + eax - 1]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
cmp eax, dword [esp + 0xa4]
jg 0x420b7e
cmp ecx, dword [esp + 0x9c]
jl 0x420b68
xor ebx, ebx
mov dword [esp + 0x20], 0xffffffff
cmp dword [esi + 0x16c], ebx
jle 0x420b68
lea esp, [esp]
test ebx, ebx
js 0x420b5b
cmp ebx, dword [esi + 0x168]
jge 0x420b5b
mov edx, dword [esi + 0x4fc]
mov eax, dword [edx + ebx*4]
lea edi, [edx + ebx*4]
test eax, eax
js 0x42102f
cmp eax, dword [esi + 0x18c]
jge 0x42102f
mov ecx, dword [esi + 0x188]
cmp dword [ecx + eax*4], 0
jle 0x420b5b
mov edx, dword [esp + 0x20]
inc edx
mov dword [esp + 0x18], edx
test eax, eax
js 0x42102f
cmp eax, dword [esi + 0x18c]
jge 0x42102f
mov eax, dword [ecx + eax*4]
lea eax, [eax + edx - 1]
mov dword [esp + 0x20], eax
cmp edx, dword [esp + 0xa0]
jg 0x420b68
mov ecx, eax
cmp ecx, dword [esp + 0x98]
jl 0x420b5b
mov edx, dword [esp + 0x14]
push ebx
push edx
mov ecx, esi
call fcn.0041d160
mov edi, eax
test edi, edi
je 0x420b5b
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
push ebx
push ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
mov edx, dword [edx + 0xb8]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
push ebx
push eax
push ecx
mov ecx, edi
call edx
inc ebx
cmp ebx, dword [esi + 0x16c]
jl 0x420a80
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x90]
jle 0x420a00
xor ebx, ebx
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x14], ebx
cmp dword [esi + 0x164], ebx
jle 0x420d1d
jmp 0x420ba0
cmp dword [esp + 0x14], 0
jl 0x420d08
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x160]
jge 0x420d08
cmp eax, dword [esi + 0x178]
jge 0x42102f
mov ecx, dword [esi + 0x174]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
jle 0x420d08
mov eax, dword [esp + 0x24]
inc eax
lea ecx, [ecx + eax - 1]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
cmp eax, dword [esp + 0xa4]
jg 0x420d1d
cmp ecx, dword [esp + 0x9c]
jl 0x420d08
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
dec edx
mov dword [esp + 0x20], edx
cmp ebx, dword [esp + 0x94]
jg 0x420d08
lea ecx, [ecx]
test ebx, ebx
js 0x420cfa
cmp ebx, dword [esi + 0x168]
jge 0x420cfa
mov eax, dword [esi + 0x4fc]
lea edi, [eax + ebx*4]
mov eax, dword [edi]
test eax, eax
js 0x42102f
cmp eax, dword [esi + 0x18c]
jge 0x42102f
mov ecx, dword [esi + 0x188]
cmp dword [ecx + eax*4], 0
jle 0x420cfa
mov edx, dword [esp + 0x20]
inc edx
mov dword [esp + 0x18], edx
test eax, eax
js 0x42102f
cmp eax, dword [esi + 0x18c]
jge 0x42102f
mov eax, dword [ecx + eax*4]
lea ecx, [eax + edx - 1]
mov dword [esp + 0x20], ecx
cmp edx, dword [esp + 0xa0]
jg 0x420d08
mov edx, dword [esp + 0x98]
cmp ecx, edx
jl 0x420cfa
mov eax, dword [esp + 0x14]
push ebx
push eax
mov ecx, esi
call fcn.0041d160
mov edi, eax
test edi, edi
je 0x420cfa
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x34]
push ebx
push eax
mov ecx, edi
call edx
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
mov edx, dword [edx + 0xb8]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
push ebx
push eax
push ecx
mov ecx, edi
call edx
inc ebx
cmp ebx, dword [esp + 0x94]
jle 0x420c20
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esi + 0x164]
jl 0x420ba0
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x90]
jg 0x420eb6
cmp dword [esp + 0x14], 0
jl 0x420ea0
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x160]
jge 0x420ea0
cmp eax, dword [esi + 0x178]
jge 0x42102f
mov ecx, dword [esi + 0x174]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
jle 0x420ea0
mov eax, dword [esp + 0x24]
inc eax
lea ecx, [ecx + eax - 1]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
cmp eax, dword [esp + 0xa4]
jg 0x420eb6
cmp ecx, dword [esp + 0x9c]
jl 0x420ea0
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
dec edx
mov dword [esp + 0x20], edx
cmp ebx, dword [esp + 0x94]
jg 0x420ea0
test ebx, ebx
js 0x420e92
cmp ebx, dword [esi + 0x168]
jge 0x420e92
mov eax, dword [esi + 0x4fc]
lea edi, [eax + ebx*4]
mov eax, dword [edi]
test eax, eax
js 0x42102f
cmp eax, dword [esi + 0x18c]
jge 0x42102f
mov ecx, dword [esi + 0x188]
cmp dword [ecx + eax*4], 0
jle 0x420e92
mov edx, dword [esp + 0x20]
inc edx
mov dword [esp + 0x18], edx
test eax, eax
js 0x42102f
cmp eax, dword [esi + 0x18c]
jge 0x42102f
mov eax, dword [ecx + eax*4]
lea ecx, [eax + edx - 1]
mov dword [esp + 0x20], ecx
cmp edx, dword [esp + 0xa0]
jg 0x420ea0
mov edx, dword [esp + 0x98]
cmp ecx, edx
jl 0x420e92
mov eax, dword [esp + 0x14]
push ebx
push eax
mov ecx, esi
call fcn.0041d160
mov edi, eax
test edi, edi
je 0x420e92
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x34]
push ebx
push eax
mov ecx, edi
call edx
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
mov edx, dword [edx + 0xb8]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
push ebx
push eax
push ecx
mov ecx, edi
call edx
inc ebx
cmp ebx, dword [esp + 0x94]
jle 0x420db8
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x90]
jle 0x420d3b
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], vtable.CPen.0
mov byte [esp + 0xb8], 1
mov eax, dword [esi + 0xc0]
push eax
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x40]
call fcn.0045a9e3
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x3c]
push eax
call fcn.0045aad0
mov eax, dword [esi + 0xf8]
cmp eax, 3
je 0x420f0b
cmp eax, 2
jne 0x420fab
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
cmp ebx, dword [esp + 0x94]
jg 0x420fab
test ebx, ebx
js 0x420f9d
cmp ebx, dword [esi + 0x168]
jge 0x420f9d
mov edx, dword [esi + 0x4fc]
mov eax, dword [edx + ebx*4]
lea edx, [edx + ebx*4]
test eax, eax
js 0x42102f
mov edi, dword [esi + 0x18c]
cmp eax, edi
jge 0x42102f
mov ecx, dword [esi + 0x188]
cmp dword [ecx + eax*4], 0
jle 0x420f9d
test eax, eax
js 0x42102f
cmp eax, edi
jge 0x42102f
mov edi, dword [esp + 0x14]
add edi, dword [ecx + eax*4]
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x18], edi
dec edi
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.0045a428
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
push edx
push edi
call fcn.00459fb5
inc ebx
cmp ebx, dword [esp + 0x94]
jle 0x420f24
mov eax, dword [esi + 0xf8]
cmp eax, 3
je 0x420fbb
cmp eax, 1
jne 0x421034
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
cmp ebx, dword [esp + 0x90]
jg 0x421034
xor edi, edi
cmp ebx, edi
jl 0x421023
cmp ebx, dword [esi + 0x160]
jge 0x421023
cmp ebx, dword [esi + 0x178]
jge 0x42102f
mov ecx, dword [esi + 0x174]
mov eax, dword [ecx + ebx*4]
cmp eax, edi
jle 0x421023
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
add edi, eax
mov dword [esp + 0x2c], edi
dec edi
push edi
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0045a428
mov ecx, dword [esp + 0x4c]
push edi
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00459fb5
xor edi, edi
inc ebx
cmp ebx, dword [esp + 0x90]
jle 0x420fd2
jmp 0x421036
call fcn.004572d6
xor edi, edi
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
push 8
call eax
cmp dword [esi + 0xdc], edi
je 0x42106b
or eax, 0xffffffff
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
lea edi, [esp + 0x44]
mov eax, esi
call fcn.0041ec20
xor edi, edi
mov byte [esp + 0xb8], 0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], vtable.CPen.0
call fcn.0040bd20
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], vtable.ATL::CImage.0
cmp eax, edi
je 0x4210c5
or ecx, 0xffffffff
push eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov word [esp + 0x74], 0
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x5ee118
call esi
dec dword [0x5ee130]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jne 0x421104
push 0x5ee118
call esi
mov eax, dword [0x5ee114]
cmp eax, edi
je 0x4210f7
push eax
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
push 0x5ee118
mov dword [0x5ee114], edi
call ebx
push 0x5ee118
call ebx
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0055fd94
mov esp, ebp
pop ebp
ret 4