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

Disassembly:
jmp 0x409d80
push 0xffffffffffffffff
push 0x46b344
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x84]
push ebx
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0x78], ebx
call dword [sym.imp.USER32.dll_CopyRect]
mov edi, dword [esp + 0xdc]
lea ecx, [esp + 0xbc]
push ecx
push edi
lea ecx, [esp + 0x88]
call fcn.00401140
push 0x76554c
lea ecx, [esp + 0x58]
mov dword [esp + 0xd8], 0
call fcn.00446fc8
mov edx, dword [esi + 0x100]
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0xd8], 1
call fcn.00446fc8
lea ecx, [esp + 0x14]
mov byte [esp + 0xd4], 2
call fcn.00446078
test edi, edi
mov byte [esp + 0xd4], 3
je 0x409e27
mov edi, dword [edi + 4]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call fcn.00446756
lea eax, [esi + 0xe4]
test eax, eax
je 0x409e45
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00446b0e
mov ebp, dword [sym.imp.USER32.dll_OffsetRect]
lea edi, [esi + 0xb4]
mov ecx, edi
mov edx, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0xac], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0xb0], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0xb8], eax
mov eax, dword [esi + 0x12c]
test eax, eax
mov dword [esp + 0xb4], edx
je 0x409ea1
push 1
push 1
lea ecx, [esp + 0xb4]
push ecx
call ebp
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x409f10
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 + 0x84]
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 ebp
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x84]
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
call edi
jmp 0x409f24
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x84]
push edx
push edi
push eax
call dword [sym.imp.USER32.dll_FrameRect]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409f3a
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00446b0e
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x88]
mov ebp, dword [ebx + 4]
lea edx, [eax + ecx]
mov dword [esp + 0x24], edx
mov edx, eax
neg edx
shl edx, 1
mov edi, edx
mov edx, dword [ebx + 0xc]
sub edi, ebp
add edi, edx
mov edx, dword [ebx]
lea ebp, [esi + 0x74]
mov dword [ebp], edx
mov dword [esp + 0x5c], ebp
mov ebp, dword [ebx + 8]
sub ebp, edx
add ebp, edx
mov edx, dword [esi + 0x58]
add ecx, edx
mov dword [esi + 0x78], ecx
add ecx, eax
mov dword [esi + 0x7c], ebp
mov dword [esi + 0x80], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], vtable.CBitmap.0
mov byte [esp + 0xd4], 4
call fcn.0045f076
mov eax, dword [eax + 0xc]
push 0xd0
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x2c]
call fcn.00446a53
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00446b0e
mov ebp, dword [esi + 0x78]
mov ecx, dword [esi + 0x8c]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x5c]
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
push 0xcc0020
push 1
add edx, edi
mov edi, dword [esi + 0x60]
push edi
mov edi, dword [esp + 0x24]
push 0
sar eax, 1
add eax, ebp
mov ebp, dword [ebx]
push 0
push edi
sub ecx, ebp
mov dword [esp + 0x94], edx
sub edx, eax
push edx
dec ecx
push ecx
push eax
mov eax, dword [esp + 0xa8]
inc ebp
push ebp
mov ebp, dword [sym.imp.GDI32.dll_StretchBlt]
push eax
call ebp
mov eax, dword [esi + 0x108]
test eax, eax
je 0x40a0ad
mov eax, dword [esi + 0x104]
test eax, eax
je 0x40a0ad
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x80]
push eax
mov ecx, esi
call fcn.0040101e
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.GDI32.dll_SetPixel]
push eax
push 0
push 0
push ecx
call edi
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x18]
push edx
push 0
push 1
push eax
call edi
mov eax, dword [esp + 0x3c]
mov edi, 2
cmp eax, edi
jle 0x40a0ad
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x18]
push ecx
push 0
push edi
push edx
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esp + 0x3c]
inc edi
cmp edi, eax
jl 0x40a091
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x60]
mov ecx, dword [esi + 0x78]
push 0xcc0020
push 1
cdq
push edi
mov edi, dword [esp + 0x24]
sub eax, edx
mov edx, dword [ebx]
push 0
sar eax, 1
add eax, ecx
sub eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x8c]
push 0
push edi
push eax
mov eax, dword [esp + 0x40]
sub ecx, edx
push ecx
mov ecx, dword [esp + 0xa4]
push eax
push edx
push ecx
call ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40a104
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x18]
push eax
push edx
call fcn.00446b0e
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40a115
lea ecx, [esp + 0x28]
call fcn.00446aaa
lea eax, [esi + 0xec]
test eax, eax
je 0x40a122
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00446b0e
mov ebp, dword [esi + 0x130]
test ebp, ebp
lea edi, [esi + 0xc4]
mov ecx, edi
mov edx, dword [ecx]
mov dword [esp + 0x60], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
je 0x40a179
push 1
push 1
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
sub ecx, edx
push 0xcc0020
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x5c]
push ecx
mov ecx, dword [esi + 0x60]
push ecx
mov ecx, dword [esp + 0x24]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x68]
push ecx
sub eax, ebp
dec eax
push eax
push edx
mov edx, dword [esp + 0xa8]
push ebp
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esi + 0x120]
test eax, eax
je 0x40a219
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 8]
mov edi, dword [edi + 0xc]
inc eax
dec ecx
mov dword [esp + 0x38], eax
push edx
lea eax, [esp + 0x3c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x88]
dec edi
push eax
mov dword [esp + 0x4c], edi
mov edi, dword [sym.imp.USER32.dll_FrameRect]
push ecx
call edi
push 1
push 1
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x84]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call edi
jmp 0x40a233
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x84]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_FrameRect]
mov edi, dword [sym.imp.USER32.dll_FrameRect]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40a249
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x18]
push eax
push edx
call fcn.00446b0e
mov eax, dword [esi + 0x70]
test eax, eax
je 0x40a3f6
mov eax, dword [esi + 0x110]
test eax, eax
jne 0x40a286
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 0x1c]
je 0x40a286
lea eax, [esi + 0xd4]
test eax, eax
jne 0x40a27b
push eax
mov eax, dword [esp + 0x1c]
push eax
jmp 0x40a299
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x1c]
push eax
jmp 0x40a299
lea eax, [esi + 0xdc]
test eax, eax
je 0x40a293
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00446b0e
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x60]
xor edi, edi
test eax, eax
jle 0x40a310
mov ebx, dword [sym.imp.GDI32.dll_GetPixel]
mov eax, dword [esi + 0x5c]
xor ebp, ebp
test eax, eax
jle 0x40a304
lea ebx, [ebx]
mov edx, dword [esp + 0x18]
push ebp
push edi
push edx
call ebx
cmp eax, 0x30000
jne 0x40a2d6
mov eax, dword [esp + 0x24]
jmp 0x40a2e2
cmp eax, 0x40000
jne 0x40a2fc
mov eax, dword [esp + 0x7c]
dec eax
mov ecx, dword [esp + 0x84]
push eax
push edi
push ecx
call ebx
mov edx, dword [esp + 0x18]
push eax
push ebp
push edi
push edx
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esi + 0x5c]
inc ebp
cmp ebp, eax
jl 0x40a2c0
mov eax, dword [esi + 0x60]
inc edi
cmp edi, eax
jl 0x40a2b1
mov ebx, dword [esp + 0x70]
mov edx, dword [esi + 0x5c]
mov edi, dword [esp + 0x5c]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov ebp, dword [edi]
push 0xcc0020
push edx
mov edx, dword [esi + 0x60]
push edx
mov edx, dword [esp + 0x24]
push 0
push 0
sub eax, ecx
mov ecx, dword [edi + 8]
push edx
push eax
mov eax, dword [esi + 0x78]
sub ecx, ebp
push ecx
push eax
mov eax, dword [esp + 0xa8]
push ebp
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esi + 0x104]
test eax, eax
jne 0x40a3d8
mov eax, dword [esi + 0x110]
test eax, eax
jne 0x40a371
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 0x1c]
jne 0x40a3d8
mov edx, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_InflateRect]
push 0xffffffffffffffff
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 0xc]
push 0xffffffffffffffff
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
call esi
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x84]
mov edi, dword [sym.imp.USER32.dll_FrameRect]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call edi
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x40]
push eax
call esi
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x84]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
call edi
jmp 0x40a3de
mov edi, dword [sym.imp.USER32.dll_FrameRect]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40a411
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00446b0e
jmp 0x40a411
mov eax, dword [esp + 0x5c]
or ecx, 0xffffffff
or edx, 0xffffffff
mov dword [eax], ecx
or esi, 0xffffffff
mov dword [eax + 4], edx
or ebp, 0xffffffff
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebp
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x84]
push edx
push ebx
push eax
call edi
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x28]
mov byte [esp + 0xd4], 3
mov dword [esp + 0x28], esi
call fcn.00446aaa
lea ecx, [esp + 0x14]
mov byte [esp + 0xd4], 2
call fcn.004467d4
lea ecx, [esp + 0x30]
mov byte [esp + 0xd4], 1
mov dword [esp + 0x30], esi
call fcn.00446aaa
lea ecx, [esp + 0x54]
mov byte [esp + 0xd4], 0
mov dword [esp + 0x54], esi
call fcn.00446aaa
lea ecx, [esp + 0x80]
mov dword [esp + 0xd4], 0xffffffff
call fcn.0040116d
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc8
ret 4