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

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffa8
mov edi, edx
mov ebx, eax
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebx + 0x44]
push eax
lea ecx, [ebx + 0xc]
lea edx, [ebx + 0x34]
mov eax, dword [ebx + 0x38]
call fcn.00510500
mov eax, ebx
call fcn.005268cc
test al, al
je 0x525d9f
lea eax, [esp + 0x40]
call fcn.004c2368
lea edx, [esp + 0x40]
lea eax, [ebx + 0xc]
call fcn.0040810c
test al, al
jne 0x525c97
xor eax, eax
mov dword [ebx + 0x7c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
jmp 0x525cfe
mov eax, dword [ebx + 0x40]
sar eax, 1
jns 0x525ca1
adc eax, 0
mov edx, dword [ebx + 0x18]
sub edx, eax
push edx
lea eax, [esp + 0x4c]
push eax
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
call fcn.004080ac
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x44]
call fcn.004c2368
lea edx, [esp + 0x44]
pop eax
call fcn.0040810c
test al, al
je 0x525ceb
movzx eax, byte [ebx + 0x84]
inc eax
mov dword [ebx + 0x7c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
jmp 0x525cfe
xor eax, eax
mov dword [ebx + 0x7c], eax
movzx eax, byte [ebx + 0x84]
inc eax
mov dword [ebx + 0x80], eax
push esp
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_BeginPaint
xor edx, edx
mov eax, dword [ebx + 0x68]
call fcn.005341f4
test al, al
jne 0x525d90
mov eax, dword [edi + 4]
test eax, eax
jne 0x525d2a
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_GetDC
mov esi, eax
jmp 0x525d2c
mov esi, eax
mov dl, 1
mov eax, dword [ebx + 0x68]
call fcn.00536c18
mov eax, ebx
ret
call fcn.00526058
push 0xcc0020
push 0
mov eax, dword [ebx + 0x78]
push eax
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x50]
call fcn.004361d4
call fcn.00431778
push eax
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x50]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x50]
mov edx, dword [eax]
call dword [edx + 0x30]
sub eax, dword [ebx + 0x78]
push eax
push 0
mov eax, dword [ebx + 0x78]
push eax
push esi
call sub.gdi32.dll_BitBlt
cmp dword [edi + 4], 0
je 0x525d90
push esi
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_ReleaseDC
push esp
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_EndPaint
jmp 0x525ec3
lea eax, [esp + 0x40]
call fcn.004c2368
lea edx, [esp + 0x40]
lea eax, [ebx + 0xc]
call fcn.0040810c
test al, al
jne 0x525dc7
xor eax, eax
mov dword [ebx + 0x7c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
jmp 0x525e2e
mov eax, dword [ebx + 0x18]
push eax
lea eax, [esp + 0x4c]
push eax
mov eax, dword [ebx + 0x3c]
sar eax, 1
jns 0x525dda
adc eax, 0
mov ecx, dword [ebx + 0x14]
sub ecx, eax
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
call fcn.004080ac
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x44]
call fcn.004c2368
lea edx, [esp + 0x44]
pop eax
call fcn.0040810c
test al, al
je 0x525e1b
movzx eax, byte [ebx + 0x84]
inc eax
mov dword [ebx + 0x7c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
jmp 0x525e2e
xor eax, eax
mov dword [ebx + 0x7c], eax
movzx eax, byte [ebx + 0x84]
inc eax
mov dword [ebx + 0x80], eax
push esp
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_BeginPaint
xor edx, edx
mov eax, dword [ebx + 0x68]
call fcn.005341f4
test al, al
jne 0x525eb9
mov eax, dword [edi + 4]
test eax, eax
jne 0x525e5a
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_GetDC
mov esi, eax
jmp 0x525e5c
mov esi, eax
mov dl, 1
mov eax, dword [ebx + 0x68]
call fcn.00536c18
mov eax, ebx
call fcn.00526058
push 0xcc0020
push 0
push 0
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x50]
call fcn.004361d4
call fcn.00431778
push eax
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x50]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x50]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0
push 0
push esi
call sub.gdi32.dll_BitBlt
cmp dword [edi + 4], 0
je 0x525eb9
push esi
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_ReleaseDC
push esp
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_EndPaint
add esp, 0x58
pop edi
pop esi
pop ebx
ret