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

Disassembly:
push 0xffffffffffffffff
push 0x61eb18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x34]
push edi
push eax
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xd4]
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.00502bc0
mov ecx, esi
mov edi, eax
call fcn.00502570
lea ecx, [esp + 0x28]
call fcn.005e073b
mov eax, dword [esp + 0x78]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x70], ebp
jne 0x502665
xor eax, eax
jmp 0x502668
mov eax, dword [eax + 4]
push ebx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x30]
call fcn.005e07f2
cmp dword [esi + 0x50], ebp
jne 0x5026c4
push 8
call fcn.005dd77b
add esp, 4
cmp eax, ebp
je 0x50269a
mov dword [eax + 4], ebp
mov dword [eax], vtable.CBitmap.0
mov ebx, eax
jmp 0x50269c
xor ebx, ebx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
sub eax, ecx
push edi
push eax
mov eax, dword [esp + 0x84]
mov dword [esi + 0x50], ebx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebx
call fcn.005e1342
mov eax, dword [esi + 0x50]
cmp eax, ebp
jne 0x5026cf
xor eax, eax
jmp 0x5026d2
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x30]
push eax
push edx
call fcn.005e0933
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
add eax, edi
mov dword [esp + 0x28], edx
mov ecx, esi
mov dword [esp + 0x28], eax
call fcn.00505540
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ecx, esi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edi
sub ebx, edx
call fcn.00505540
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], ebx
mov ebx, dword [esi + 0x18c]
cmp eax, ecx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x58], edi
mov dword [esp + 0x10], ebx
jge 0x5027fd
jmp 0x50275f
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
cmp ebx, eax
jge 0x502781
lea eax, [esp + 0x5c]
push ebx
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x118]
mov edx, dword [esi]
push ebx
jmp 0x502783
push 0xffffffffffffffff
lea eax, [esp + 0x50]
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x114]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
sub ecx, ebx
sub edx, ebp
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, dword [esp + 0x38]
push 0
push eax
push ecx
push edx
mov edx, dword [esp + 0x94]
push ebx
push ebp
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x20]
inc eax
push 0
push ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
cmp edx, eax
jl 0x50275b
xor ebp, ebp
mov eax, dword [esp + 0x18]
pop ebx
cmp eax, ebp
je 0x502809
mov ebp, dword [eax + 4]
mov eax, dword [esp + 0x2c]
push ebp
push eax
call fcn.005e0933
lea ecx, [esp + 0x28]
call fcn.005e085a
lea ecx, [esp + 0x28]
mov dword [esp + 0x70], 0xffffffff
call fcn.005e0870
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x68
ret 4