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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43897a
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x44b418]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call fcn.004165a2
mov esi, eax
xor edi, edi
mov dword [esp + 0x14], esi
cmp esi, edi
je 0x404eaa
mov eax, dword [ebx + 0x20]
cmp eax, edi
je 0x404eaa
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
neg edx
push edx
neg eax
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
push 0x10
call fcn.00408f83
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], edi
cmp eax, edi
je 0x40481a
mov ecx, eax
call fcn.0041610e
mov edi, eax
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.004165b6
mov eax, dword [ebx + 0xb8]
test eax, eax
je 0x404841
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
push eax
push edx
call fcn.00416917
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x20
mov dword [esp + 0x14], eax
call esi
mov ecx, dword [edi + 4]
push 0xcc0020
push 0
push 0
push ecx
push 0x5e
push eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404886
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
push eax
push edx
call fcn.00416917
mov eax, dword [ebx + 0xbc]
test eax, eax
je 0x40489d
mov eax, dword [eax + 4]
push eax
mov eax, dword [edi + 4]
push eax
call fcn.00416917
push 0x20
mov dword [esp + 0x14], eax
call esi
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
jge 0x4048f7
jmp 0x4048c4
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 4]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
push 0x1e
push 2
push 0
push eax
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x18]
add eax, 2
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
jl 0x4048c0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404902
mov eax, dword [eax + 4]
push eax
mov eax, dword [edi + 4]
push eax
call fcn.00416917
mov eax, dword [ebx + 0xc0]
test eax, eax
je 0x404919
mov eax, dword [eax + 4]
mov ecx, dword [edi + 4]
push eax
push ecx
call fcn.00416917
push 0x20
mov dword [esp + 0x14], eax
call esi
mov ecx, 8
sub ecx, eax
push 0x20
mov dword [esp + 0x1c], ecx
call esi
push 0x20
mov dword [esp + 0x20], eax
call esi
mov ecx, dword [edi + 4]
push 0xcc0020
mov edx, eax
mov eax, dword [esp + 0x38]
push 0
sub eax, edx
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2c]
push 0x5e
push ecx
dec eax
push 0
push eax
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40497e
mov eax, dword [eax + 4]
mov ecx, dword [edi + 4]
push eax
push ecx
call fcn.00416917
mov eax, dword [ebx + 0xa8]
test eax, eax
je 0x404995
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
push eax
push edx
call fcn.00416917
mov edx, dword [ebx + 0x7c]
mov ecx, dword [ebx + 0x80]
sub ecx, dword [ebx + 0x78]
push 0xcc0020
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x84]
sub eax, dword [ebx + 0x7c]
push 0
sub edx, 3
push 0
mov dword [esp + 0x28], edx
mov edx, dword [edi + 4]
push edx
add eax, 3
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
push eax
mov eax, dword [ebx + 0x78]
push eax
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4049f3
mov eax, dword [eax + 4]
push eax
mov eax, dword [edi + 4]
push eax
call fcn.00416917
mov ecx, dword [ebx + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x404a13
mov eax, dword [ebx + 0xb4]
jmp 0x404a19
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x404a20
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
push eax
push edx
call fcn.00416917
mov edx, dword [ebx + 0x8c]
mov ecx, dword [ebx + 0x90]
sub ecx, dword [ebx + 0x88]
push 0xcc0020
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x94]
sub eax, dword [ebx + 0x8c]
push 0
sub edx, 3
push 0
mov dword [esp + 0x28], edx
mov edx, dword [edi + 4]
push edx
add eax, 3
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
push eax
mov eax, dword [ebx + 0x88]
push eax
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404a8a
mov eax, dword [eax + 4]
push eax
mov eax, dword [edi + 4]
push eax
call fcn.00416917
mov eax, dword [ebx + 0xac]
test eax, eax
je 0x404aa1
mov eax, dword [eax + 4]
mov ecx, dword [edi + 4]
push eax
push ecx
call fcn.00416917
mov edx, dword [ebx + 0x9c]
mov ecx, dword [ebx + 0xa0]
sub ecx, dword [ebx + 0x98]
push 0xcc0020
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xa4]
sub eax, dword [ebx + 0x9c]
push 0
sub edx, 3
push 0
mov dword [esp + 0x28], edx
mov edx, dword [edi + 4]
push edx
mov edx, dword [esp + 0x2c]
add eax, 3
push eax
mov eax, dword [ebx + 0x98]
push ecx
push edx
push eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404b0b
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
push eax
push edx
call fcn.00416917
mov eax, dword [ebx + 0xc8]
test eax, eax
je 0x404b22
mov eax, dword [eax + 4]
push eax
mov eax, dword [edi + 4]
push eax
call fcn.00416917
push 0x20
mov dword [esp + 0x14], eax
call esi
push 0x21
mov dword [esp + 0x20], eax
call esi
mov ecx, eax
mov eax, dword [esp + 0x38]
sub eax, ecx
sub eax, 0x3c
push 0x20
mov dword [esp + 0x1c], eax
call esi
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 4]
push 0xcc0020
push 1
push edx
mov edx, dword [esp + 0x20]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x30]
push ecx
push eax
mov eax, dword [edx + 4]
push 0x3c
push 0
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404b86
mov eax, dword [eax + 4]
mov ecx, dword [edi + 4]
push eax
push ecx
call fcn.00416917
mov eax, dword [ebx + 0xc4]
test eax, eax
je 0x404b9d
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
push eax
push edx
call fcn.00416917
push 0x20
mov dword [esp + 0x14], eax
call esi
push 0x20
mov dword [esp + 0x20], eax
call esi
mov ecx, 8
sub ecx, eax
push 0x21
mov dword [esp + 0x1c], ecx
call esi
mov ecx, eax
mov eax, dword [esp + 0x38]
sub eax, ecx
sub eax, 0x3c
push 0x20
mov dword [esp + 0x24], eax
call esi
push 0x20
mov dword [esp + 0x28], eax
call esi
mov ecx, dword [edi + 4]
push 0xcc0020
mov edx, eax
mov eax, dword [esp + 0x38]
push 0xa
sub eax, edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push 0
push edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
push ecx
push edx
dec eax
push 0x3c
push eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404c27
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
push eax
push edx
call fcn.00416917
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x404c3e
mov eax, dword [eax + 4]
push eax
mov eax, dword [edi + 4]
push eax
call fcn.00416917
push 0x21
mov dword [esp + 0x14], eax
call esi
mov ecx, 0xa
sub ecx, eax
push 0x21
mov dword [esp + 0x28], ecx
call esi
push 0x20
mov dword [esp + 0x24], eax
call esi
push 0x21
mov dword [esp + 0x20], eax
call esi
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
push 0xcc0020
push edx
mov edx, dword [esp + 0x24]
sub ecx, eax
mov eax, dword [edi + 4]
push 0
push eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x28]
push edx
push ecx
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404cab
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
push eax
push edx
call fcn.00416917
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x404cc2
mov eax, dword [eax + 4]
push eax
mov eax, dword [edi + 4]
push eax
call fcn.00416917
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
push 0x21
mov dword [esp + 0x28], eax
call esi
push 0x21
mov dword [esp + 0x24], eax
call esi
mov ecx, 0xa
sub ecx, eax
push 0x21
mov dword [esp + 0x20], ecx
call esi
push 0x20
mov dword [esp + 0x1c], eax
call esi
add eax, eax
mov ecx, eax
mov eax, dword [esp + 0x24]
sub eax, ecx
add eax, 2
push 0x21
mov dword [esp + 0x28], eax
call esi
mov edx, eax
mov eax, dword [esp + 0x38]
sub eax, edx
dec eax
push 0x20
mov dword [esp + 0x2c], eax
call esi
mov edx, dword [esp + 0x20]
mov ecx, dword [edi + 4]
push 0xcc0020
push edx
mov edx, dword [esp + 0x24]
push 5
push edx
mov edx, dword [esp + 0x34]
push 0
push ecx
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x34]
dec eax
push ecx
push eax
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404d66
mov eax, dword [eax + 4]
mov ecx, dword [edi + 4]
push eax
push ecx
call fcn.00416917
mov eax, dword [ebx + 0xd4]
test eax, eax
je 0x404d7d
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
push eax
push edx
call fcn.00416917
push 0x21
mov dword [esp + 0x14], eax
call esi
mov ecx, 0xb
sub ecx, eax
push 0x20
mov dword [esp + 0x2c], ecx
call esi
mov ecx, 9
sub ecx, eax
push 0x21
mov dword [esp + 0x28], ecx
call esi
push 0x20
mov dword [esp + 0x24], eax
call esi
push 0x21
mov dword [esp + 0x20], eax
call esi
mov ecx, dword [esp + 0x38]
sub ecx, eax
push 0x20
mov dword [esp + 0x1c], ecx
call esi
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
push 0xcc0020
push edx
mov edx, dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x28]
sub eax, ecx
mov ecx, dword [edi + 4]
push ecx
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esi + 4]
push ecx
dec eax
push eax
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404e10
mov eax, dword [eax + 4]
push eax
mov eax, dword [edi + 4]
push eax
call fcn.00416917
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
lea eax, [ebx + 0x1f8]
push eax
mov ecx, esi
call edx
mov dword [esp + 0x24], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push 0xb57931
mov ecx, esi
call edx
push 1
mov ecx, esi
call fcn.00415f5e
mov eax, dword [ebx + 0x200]
mov edx, dword [eax - 0xc]
lea ecx, [ebx + 0x200]
sub eax, 0x10
cmp dword [eax + 0xc], 1
mov dword [esp + 0x28], edx
jle 0x404e6a
mov eax, dword [eax + 4]
push eax
call fcn.00402130
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx + 0x200]
mov edx, dword [esi]
mov edx, dword [edx + 0x5c]
push eax
push ecx
push 7
push 0xf
mov ecx, esi
call edx
mov ecx, dword [esp + 0x24]
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
push ecx
mov ecx, esi
call edx
mov eax, dword [edi + 4]
mov ecx, dword [ebx + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
mov ecx, dword [esi + 4]
mov edx, dword [ebx + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret