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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004e9cf4
test al, al
jne 0x5041a7
xor eax, eax
push ebp
push 0x50419d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0xe40
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe38]
cmp byte [eax + 0xe8], 0
je 0x503c83
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x516c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5170]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x5168]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, 0x347
call fcn.004bedfc
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa8c], 1
jle 0x503ca8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xa8c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, 0x348
call fcn.004be91c
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa60], 0
jle 0x503dfe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe38]
mov eax, dword [eax + 0x1a4]
sub eax, 5
je 0x503dfe
mov byte [ebp - 0x19], 0
xor eax, eax
mov dword [ebp - 0xc], eax
call fcn.004cac50
mov eax, dword [eax + 0x364]
call fcn.004c4194
jmp 0x503de4
call fcn.004cac50
mov eax, dword [eax + 0x364]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0xc]
jg 0x503d0a
mov byte [ebp - 0x19], 1
jmp 0x503de4
call fcn.004cac50
mov eax, dword [eax + 0x364]
mov edx, dword [ebp - 0xc]
call fcn.0041e790
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 4]
jne 0x503de1
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x2d], 0
je 0x503de1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x12c0]
call fcn.004db17c
test al, al
je 0x503de1
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x960]
xor edx, edx
call fcn.004c0bbc
test al, al
je 0x503de1
lea ecx, [ebp - 0x24]
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.004c07bc
test al, al
je 0x503dd9
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00503bc4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc]
mov eax, 0x34c
call fcn.004bf604
mov eax, dword [ebp - 0x10]
call fcn.00403fa4
inc dword [ebp - 0xc]
cmp byte [ebp - 0x19], 0
je 0x503cee
call fcn.004cac50
mov eax, dword [eax + 0x364]
call fcn.004c41ac
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + 0xee4], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xee8], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0xee0], 1
xor eax, eax
push ebp
push 0x504126
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f4]
cmp word [eax + 0x30a], 0
jne 0x503e67
mov eax, dword [ebp - 8]
cmp byte [eax + 0xd4], 0
je 0x503e67
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f4]
cmp word [eax + 0x2da], 0
je 0x50411c
mov eax, dword [ebp - 4]
call fcn.004e9cf4
test al, al
jne 0x50411c
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, 0xa
call fcn.004bd708
test al, al
je 0x50411c
xor eax, eax
push ebp
push 0x504109
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x14]
mov eax, 0x5af
call fcn.004bdd6c
test al, al
je 0x5040ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f4]
cmp word [eax + 0x2fa], 0
je 0x503f8d
mov byte [ebp - 0xac], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xd8]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xdc]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xe0]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xe4]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xf8]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xfc]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xe8]
mov dword [ebp - 0x90], edx
mov edx, dword [eax + 0xec]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xf0]
mov dword [ebp - 0x88], edx
mov edx, dword [eax + 0xf4]
mov dword [ebp - 0x84], edx
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x2f4]
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov eax, dword [ebx + 0x2fc]
call dword [ebx + 0x2f8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f4]
cmp word [eax + 0x30a], 0
je 0x503fd3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x24]
push dword [eax + 0x20]
push 0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x2f4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2f8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x30c]
call dword [ebx + 0x308]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f4]
cmp word [eax + 0x2da], 0
je 0x5040f2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1270]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x7c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x858]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x12cc]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x78], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xffe]
mov byte [ebp - 0x34], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf3f]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf43]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf36]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf3a]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xf48]
mov byte [ebp - 0x33], al
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x68]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
movzx eax, word [eax + 0x1e]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
movzx eax, word [eax + 0x1c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x2f4]
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2f8]
mov eax, dword [ebx + 0x2dc]
call dword [ebx + 0x2d8]
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_SelectObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x504113
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_DeleteDC
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x504130
mov eax, dword [ebp - 4]
mov byte [eax + 0xee0], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe38]
cmp byte [eax + 0xe8], 0
jne 0x504179
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x516c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5170]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x5168]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, 0x34a
call fcn.004bedfc
mov eax, dword [ebp - 4]
cmp byte [eax + 0xe85], 0
je 0x504193
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.00503b20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5041a7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret