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

Disassembly:
push 0xffffffffffffffff
push 0x475868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x1c]
call fcn.00468e3e
mov eax, dword [esi + 0x1c]
lea ebx, [esi + 0xb8]
push ebx
push eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.USER32.dll_GetClientRect]
call fcn.00471ab2
mov eax, dword [eax + 0xc]
push 0x9f
push eax
lea edi, [esi + 0x70]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call fcn.004690a4
mov edx, dword [esi + 0x74]
lea ecx, [esi + 0x80]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x1c]
push eax
lea edi, [esi + 0xa8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.00468dbd
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0xc]
mov ebp, dword [ebx]
sub eax, ecx
mov ecx, dword [ebx + 8]
sub ecx, ebp
push eax
push ecx
mov ecx, dword [esp + 0x24]
push ecx
lea ebp, [esi + 0x78]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.004690a4
test ebp, ebp
je 0x40499c
mov ebp, dword [ebp + 4]
test ebp, ebp
je 0x40499c
mov edx, dword [esi + 0xac]
push ebp
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x1c]
push eax
lea ebp, [esi + 0x98]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebp
call fcn.00468dbd
push 0xfaf9fb
push ebx
mov ecx, edi
call fcn.0046c7df
lea eax, [esi + 0xc8]
test eax, eax
je 0x4049e1
mov eax, dword [eax + 4]
test eax, eax
je 0x4049e1
mov ecx, dword [esi + 0xac]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi]
push 0x666666
mov ecx, edi
call dword [edx + 0x30]
lea eax, [esi + 0x70]
test eax, eax
je 0x4049f7
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 0x9c]
push eax
call fcn.0046912d
mov edx, dword [esi + 0x84]
mov ecx, dword [esi + 0x88]
mov eax, 0x66666667
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
test ebp, ebp
jne 0x404a28
xor edx, edx
jmp 0x404a2b
mov edx, dword [ebp + 4]
push 0xcc0020
push 0
push 0
push edx
push ecx
mov ecx, dword [esi + 0xac]
push eax
push 0x2b
push 0x12
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esi + 0xd8]
mov edx, dword [ecx - 0xc]
mov eax, dword [esi + 0x88]
mov ebx, dword [edi]
push edx
push ecx
add eax, 0x32
push eax
push 0x18
mov ecx, edi
call dword [ebx + 0x5c]
xor ecx, ecx
mov ebp, 0x18
lea ebx, [esi + 0xdc]
mov edx, dword [esi + 0x84]
mov eax, 0x66666667
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
inc ecx
mov dword [esp + 0x14], ecx
imul ecx, eax
lea edx, [esi + 0x98]
test edx, edx
je 0x404a9e
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push ecx
mov ecx, dword [esi + 0x88]
push edx
push ecx
push eax
mov eax, dword [esi + 0xac]
push 0xbc
lea edx, [ebp - 6]
push edx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebx]
mov edx, dword [ecx - 0xc]
mov eax, dword [esi + 0x88]
mov dword [esp + 0x10], edx
push dword [esp + 0x10]
mov edx, dword [edi]
push ecx
add eax, 0xc3
push eax
push ebp
mov ecx, edi
call dword [edx + 0x5c]
mov ecx, dword [esp + 0x14]
add ebp, 0x5a
add ebx, 4
cmp ebp, 0x180
jb 0x404a73
mov eax, dword [edi]
lea ecx, [esi + 0xd0]
push ecx
mov ecx, edi
call dword [eax + 0x28]
mov edx, dword [edi]
push 0x614b3f
mov ecx, edi
call dword [edx + 0x30]
push 0x47e1b8
lea ecx, [esp + 0x14]
call fcn.004025d0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
mov edx, dword [edi]
push ecx
push eax
push 0x10
push 0x12
mov ecx, edi
mov byte [esp + 0x44], 1
call dword [edx + 0x5c]
mov eax, dword [esp + 0x10]
xor ebx, ebx
add eax, 0xfffffff0
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404b62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x47e1ac
lea ecx, [esp + 0x14]
call fcn.004025d0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
mov edx, dword [edi]
push ecx
push eax
push 0x9b
push 0x12
mov ecx, edi
mov byte [esp + 0x44], 2
call dword [edx + 0x5c]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404bae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x1c]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 0xffffffff
call fcn.00468e99
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret