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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x78]
test ecx, ecx
jne 0x505a0b
xor eax, eax
jmp 0x505bd1
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 3
ja case.default.0x505a34
mov eax, dword [ebp - 0x14]
jmp dword [eax*4 + 0x505bd8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x84], edx
jmp case.default.0x505a34
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x84], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x98]
mov dword [ebp - 0x10], eax
jmp case.default.0x505a34
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x84], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x98]
mov dword [ebp - 0x10], ecx
jmp case.default.0x505a34
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x84], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x505acc
xor eax, eax
jmp 0x505bd1
mov edx, dword [ebp - 4]
cmp dword [edx + 0x7c], 0
je 0x505aea
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x68]
call edx
mov ecx, dword [ebp - 4]
add ecx, 0x60
call fcn.00419090
movzx eax, al
test eax, eax
jne 0x505bcc
push 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x84]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [ebp - 0x10], 0
je 0x505b97
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c]
push edx
mov ecx, dword [ebp - 4]
add ecx, 0x3c
call fcn.005047d0
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x60
call fcn.004188e0
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x60
call fcn.0041b040
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x3c
call fcn.005047d0
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x505bcc
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x3c
call fcn.005047d0
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x60
call fcn.004188e0
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x60
call fcn.0041b040
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, 1
mov esp, ebp
pop ebp
ret 4