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

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff98
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, eax
lea eax, [edi + 0x2c]
push eax
lea eax, [edi + 0x1c]
push eax
lea eax, [edi + 0x24]
push eax
lea ecx, [edi + 0xc]
lea edx, [edi + 0x3c]
mov eax, dword [edi + 0x54]
call fcn.004f3388
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x14]
test al, al
je 0x505815
lea eax, [esp + 0x50]
call fcn.004c2c68
lea edx, [esp + 0x50]
lea eax, [edi + 0xc]
call fcn.00407d6c
test al, al
jne 0x5056f5
xor eax, eax
mov dword [edi + 0x80], eax
xor eax, eax
mov dword [edi + 0x84], eax
jmp 0x50575c
mov eax, dword [edi + 0x20]
sar eax, 1
jns 0x5056ff
adc eax, 0
mov edx, dword [edi + 0x18]
sub edx, eax
push edx
lea eax, [esp + 0x5c]
push eax
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0xc]
call fcn.00407d30
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x54]
call fcn.004c2c68
lea edx, [esp + 0x54]
pop eax
call fcn.00407d6c
test al, al
je 0x505749
movzx eax, byte [edi + 0x7c]
inc eax
mov dword [edi + 0x80], eax
xor eax, eax
mov dword [edi + 0x84], eax
jmp 0x50575c
xor eax, eax
mov dword [edi + 0x80], eax
movzx eax, byte [edi + 0x7c]
inc eax
mov dword [edi + 0x84], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [edi + 0x54]
push eax
call sub.user32.dll_BeginPaint
mov esi, dword [edi + 0x5c]
mov eax, esi
call fcn.00527c48
mov edx, eax
mov eax, esi
call fcn.00528164
mov eax, dword [edi + 0x5c]
call fcn.00527c48
test al, al
jne 0x505802
mov eax, dword [esp + 4]
test eax, eax
jne 0x50579e
mov eax, dword [edi + 0x54]
push eax
call sub.user32.dll_GetDC
mov esi, eax
jmp 0x5057a0
mov esi, eax
mov eax, dword [edi + 0x5c]
mov byte [eax + 0x39], 1
mov eax, edi
call fcn.00505ac8
push 0xcc0020
push 0
mov eax, dword [edi + 0x78]
push eax
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x44]
call fcn.00436458
call fcn.00431e40
push eax
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [edi + 0x78]
push eax
push 0
mov eax, dword [edi + 0x78]
push eax
push esi
call sub.gdi32.dll_BitBlt
cmp dword [esp + 4], 0
je 0x505802
push esi
mov eax, dword [edi + 0x54]
push eax
call sub.user32.dll_ReleaseDC
lea eax, [esp + 0x10]
push eax
mov eax, dword [edi + 0x54]
push eax
call sub.user32.dll_EndPaint
jmp 0x505949
lea eax, [esp + 0x50]
call fcn.004c2c68
lea edx, [esp + 0x50]
lea eax, [edi + 0xc]
call fcn.00407d6c
test al, al
jne 0x505840
xor eax, eax
mov dword [edi + 0x80], eax
xor eax, eax
mov dword [edi + 0x84], eax
jmp 0x5058a7
mov eax, dword [edi + 0x18]
push eax
lea eax, [esp + 0x5c]
push eax
mov eax, dword [edi + 0x1c]
sar eax, 1
jns 0x505853
adc eax, 0
mov ecx, dword [edi + 0x14]
sub ecx, eax
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0xc]
call fcn.00407d30
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x54]
call fcn.004c2c68
lea edx, [esp + 0x54]
pop eax
call fcn.00407d6c
test al, al
je 0x505894
movzx eax, byte [edi + 0x7c]
inc eax
mov dword [edi + 0x80], eax
xor eax, eax
mov dword [edi + 0x84], eax
jmp 0x5058a7
xor eax, eax
mov dword [edi + 0x80], eax
movzx eax, byte [edi + 0x7c]
inc eax
mov dword [edi + 0x84], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [edi + 0x54]
push eax
call sub.user32.dll_BeginPaint
mov eax, dword [edi + 0x5c]
call fcn.00527c48
mov ebx, eax
mov eax, dword [edi + 0x5c]
mov byte [eax + 0x1c], bl
test bl, bl
jne 0x50593b
mov eax, dword [esp + 4]
test eax, eax
jne 0x5058de
mov eax, dword [edi + 0x54]
push eax
call sub.user32.dll_GetDC
mov esi, eax
jmp 0x5058e0
mov esi, eax
mov eax, dword [edi + 0x5c]
mov byte [eax + 0x39], 1
mov eax, edi
call fcn.00505ac8
push 0xcc0020
push 0
push 0
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x44]
call fcn.00436458
call fcn.00431e40
push eax
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
push esi
call sub.gdi32.dll_BitBlt
cmp dword [esp + 4], 0
je 0x50593b
push esi
mov eax, dword [edi + 0x54]
push eax
call sub.user32.dll_ReleaseDC
lea eax, [esp + 0x10]
push eax
mov eax, dword [edi + 0x54]
push eax
call sub.user32.dll_EndPaint
add esp, 0x68
pop edi
pop esi
pop ebx
ret