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

Disassembly:
jmp 0x409520
push 0xffffffffffffffff
push 0x46b2f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x84]
push ebx
lea eax, [esp + 0xbc]
push eax
mov dword [esp + 0x6c], ebx
call dword [sym.imp.USER32.dll_CopyRect]
mov edi, dword [esp + 0xd8]
lea ecx, [esp + 0xb8]
push ecx
push edi
lea ecx, [esp + 0x74]
call fcn.00401140
push 0x76554c
lea ecx, [esp + 0x58]
mov dword [esp + 0xd4], 0
call fcn.00446fc8
mov edx, dword [esi + 0x100]
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 1
call fcn.00446fc8
lea ecx, [esp + 0x10]
mov byte [esp + 0xd0], 2
call fcn.00446078
test edi, edi
mov byte [esp + 0xd0], 3
je 0x4095c4
mov edi, dword [edi + 4]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x14]
call fcn.00446756
lea eax, [esi + 0xe4]
test eax, eax
je 0x4095e2
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.00446b0e
lea edi, [esi + 0x94]
mov ecx, edi
mov edx, dword [ecx]
mov ebp, eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x98], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x9c], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0xa4], eax
mov eax, dword [esi + 0x128]
test eax, eax
mov dword [esp + 0xa0], edx
je 0x40963a
push 1
push 1
lea ecx, [esp + 0xa0]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x118]
test eax, eax
je 0x4096a7
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov ecx, dword [edi + 8]
push 0xffffffffffffffff
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
mov edx, dword [edi + 0xc]
push 0xffffffffffffffff
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x70]
mov edi, dword [sym.imp.USER32.dll_FrameRect]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
call edi
push 1
push 1
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x70]
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
call edi
jmp 0x4096b8
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x70]
push edx
push edi
push eax
call dword [sym.imp.USER32.dll_FrameRect]
mov eax, dword [esi + 0x60]
mov edi, dword [ebx]
add edi, eax
lea ecx, [eax + eax]
mov eax, dword [ebx + 8]
sub eax, ecx
sub eax, dword [ebx]
test ebp, ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x20], eax
je 0x4096e3
mov ebp, dword [ebp + 4]
mov edx, dword [esp + 0x14]
push ebp
push edx
call fcn.00446b0e
mov ecx, dword [ebx]
mov eax, dword [esi + 0x54]
mov edx, dword [esi + 0x60]
add eax, ecx
lea ebp, [esi + 0x74]
mov dword [ebp], eax
add edx, eax
mov eax, dword [esi + 0x88]
mov dword [esi + 0x7c], edx
mov dword [esi + 0x78], eax
mov ecx, dword [ebx + 0xc]
sub ecx, dword [ebx + 4]
add ecx, eax
mov dword [esi + 0x80], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], vtable.CBitmap.0
mov byte [esp + 0xd0], 4
call fcn.0045f076
mov eax, dword [eax + 0xc]
push 0xcb
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x2c]
call fcn.00446a53
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.00446b0e
mov ebx, dword [esi + 0x88]
mov ecx, dword [esi + 0x90]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x60]
cdq
sub eax, edx
mov edx, dword [ebp]
sar eax, 1
add eax, edx
mov edx, dword [esp + 0x20]
add edx, edi
sub ecx, ebx
push 0xcc0020
mov dword [esp + 0x24], edx
dec ecx
sub edx, eax
inc ebx
mov dword [esp + 0x54], ebx
mov ebx, dword [esi + 0x5c]
push ebx
mov ebx, dword [esp + 0x1c]
push 1
push 0
push 0
push ebx
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x90]
push ecx
push eax
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esi + 0x108]
test eax, eax
je 0x40983e
mov eax, dword [esi + 0x104]
test eax, eax
je 0x40983e
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x58]
push edx
mov ecx, esi
call fcn.0040101e
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x38]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.GDI32.dll_SetPixel]
push edx
push 0
push 0
push eax
call ebx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x14]
push ecx
push 1
push 0
push edx
call ebx
mov eax, dword [esp + 0x40]
mov ebx, 2
cmp eax, ebx
jle 0x40983e
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
push eax
push ebx
push 0
push ecx
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esp + 0x40]
inc ebx
cmp ebx, eax
jl 0x409822
mov eax, dword [esi + 0x60]
mov ebx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x90]
push 0xcc0020
push ebx
mov ebx, dword [esp + 0x1c]
cdq
sub eax, edx
mov edx, dword [ebp]
push 1
sar eax, 1
push 0
add eax, edx
mov edx, dword [esi + 0x88]
push 0
sub ecx, edx
push ebx
dec ecx
push ecx
sub eax, edi
push eax
inc edx
push edx
mov edx, dword [esp + 0x94]
push edi
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x409899
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.00446b0e
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4098aa
lea ecx, [esp + 0x28]
call fcn.00446aaa
lea eax, [esi + 0xec]
test eax, eax
je 0x4098b7
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00446b0e
lea edi, [esi + 0xa4]
mov ebx, eax
mov edx, edi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0xa8], eax
mov eax, dword [edx + 8]
mov dword [esp + 0xb0], eax
mov eax, dword [esi + 0x124]
test eax, eax
mov dword [esp + 0xac], ecx
mov ecx, dword [edx + 0xc]
mov dword [esp + 0xb4], ecx
je 0x40990f
push 1
push 1
lea edx, [esp + 0xb0]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x114]
test eax, eax
je 0x40996e
mov eax, dword [edi]
mov ecx, dword [edi + 8]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 4]
mov edi, dword [edi + 0xc]
inc eax
dec ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x3c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x74]
dec edi
push edx
mov dword [esp + 0x4c], edi
mov edi, dword [sym.imp.USER32.dll_FrameRect]
push eax
call edi
push 1
push 1
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x70]
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
jmp 0x40997f
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x70]
push edx
push edi
mov edi, dword [sym.imp.USER32.dll_FrameRect]
push eax
call edi
test ebx, ebx
je 0x409993
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00446b0e
mov eax, dword [esi + 0x70]
test eax, eax
je 0x409b24
mov eax, dword [esi + 0x110]
test eax, eax
jne 0x4099d0
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 0x1c]
je 0x4099d0
lea eax, [esi + 0xd4]
test eax, eax
jne 0x4099c5
mov edx, dword [esp + 0x14]
push eax
push edx
jmp 0x4099e3
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x14]
push eax
push edx
jmp 0x4099e3
lea eax, [esi + 0xdc]
test eax, eax
je 0x4099dd
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.00446b0e
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x60]
xor ebx, ebx
test eax, eax
jle 0x409a51
mov eax, dword [esi + 0x5c]
xor edi, edi
test eax, eax
jle 0x409a49
mov edi, edi
mov ecx, dword [esp + 0x14]
push edi
push ebx
push ecx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, 0x30000
jne 0x409a1a
mov edx, dword [esp + 0x5c]
jmp 0x409a26
cmp eax, 0x40000
jne 0x409a41
mov edx, dword [esp + 0x20]
dec edx
mov eax, dword [esp + 0x70]
push edi
push edx
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
mov ecx, dword [esp + 0x14]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esi + 0x5c]
inc edi
cmp edi, eax
jl 0x409a00
mov eax, dword [esi + 0x60]
inc ebx
cmp ebx, eax
jl 0x4099f5
mov edx, dword [esi + 0x5c]
mov ebx, dword [esi + 0x60]
mov ecx, dword [ebp + 4]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp]
push 0xcc0020
push edx
mov edx, dword [esp + 0x1c]
push ebx
push 0
push 0
sub eax, ecx
mov ecx, dword [ebp + 8]
push edx
push eax
mov eax, dword [esi + 0x78]
sub ecx, edi
push ecx
push eax
mov eax, dword [esp + 0x94]
push edi
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esi + 0x104]
test eax, eax
jne 0x409b06
mov eax, dword [esi + 0x110]
test eax, eax
jne 0x409aab
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 0x1c]
jne 0x409b06
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
mov ebp, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_FrameRect]
inc eax
inc ecx
dec edx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x40], edx
push ecx
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x74]
push edx
sub ebp, 2
push eax
mov dword [esp + 0x50], ebp
call edi
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x70]
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
call edi
jmp 0x409b0c
mov edi, dword [sym.imp.USER32.dll_FrameRect]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x409b3c
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x14]
push eax
push edx
call fcn.00446b0e
jmp 0x409b3c
or eax, 0xffffffff
or ecx, 0xffffffff
mov dword [ebp], eax
or edx, 0xffffffff
mov dword [ebp + 4], ecx
or esi, 0xffffffff
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], esi
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x70]
push eax
push ecx
push edx
call edi
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x28]
mov byte [esp + 0xd0], 3
mov dword [esp + 0x28], esi
call fcn.00446aaa
lea ecx, [esp + 0x10]
mov byte [esp + 0xd0], 2
call fcn.004467d4
lea ecx, [esp + 0x30]
mov byte [esp + 0xd0], 1
mov dword [esp + 0x30], esi
call fcn.00446aaa
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 0
mov dword [esp + 0x54], esi
call fcn.00446aaa
lea ecx, [esp + 0x6c]
mov dword [esp + 0xd0], 0xffffffff
call fcn.0040116d
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc4
ret 4