Function at 0x4f2fd8
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.004da8bc
test al, al
jne 0x4f357f
xor eax, eax
push ebp
push 0x4f3575
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0xe80
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 + 0xe78]
cmp byte [eax + 0xe8], 0
je 0x4f305b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x51bc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x51c0]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x51b8]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, 0x347
call fcn.004af5ac
mov eax, dword [ebp - 4]
cmp dword [eax + 0xacc], 1
jle 0x4f3080
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xacc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, 0x348
call fcn.004af0cc
mov eax, dword [ebp - 4]
cmp dword [eax + 0xaa0], 0
jle 0x4f31d6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe78]
mov eax, dword [eax + 0x1a4]
sub eax, 5
je 0x4f31d6
mov byte [ebp - 0x19], 0
xor eax, eax
mov dword [ebp - 0xc], eax
call fcn.004bb35c
mov eax, dword [eax + 0x300]
call fcn.004b48d8
jmp 0x4f31bc
call fcn.004bb35c
mov eax, dword [eax + 0x300]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0xc]
jg 0x4f30e2
mov byte [ebp - 0x19], 1
jmp 0x4f31bc
call fcn.004bb35c
mov eax, dword [eax + 0x300]
mov edx, dword [ebp - 0xc]
call fcn.0041d1e0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 4]
jne 0x4f31b9
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x2d], 0
je 0x4f31b9
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1300]
call fcn.004cb760
test al, al
je 0x4f31b9
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x9a0]
xor edx, edx
call fcn.004b1300
test al, al
je 0x4f31b9
lea ecx, [ebp - 0x24]
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.004b0f00
test al, al
je 0x4f31b1
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004f2f9c
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.004afdb4
mov eax, dword [ebp - 0x10]
call fcn.00403d2c
inc dword [ebp - 0xc]
cmp byte [ebp - 0x19], 0
je 0x4f30c6
call fcn.004bb35c
mov eax, dword [eax + 0x300]
call fcn.004b48f0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + 0xf24], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xf28], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0xf20], 1
xor eax, eax
push ebp
push 0x4f34fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
cmp word [eax + 0x30a], 0
jne 0x4f323f
mov eax, dword [ebp - 8]
cmp byte [eax + 0xd4], 0
je 0x4f323f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
cmp word [eax + 0x2da], 0
je 0x4f34f4
mov eax, dword [ebp - 4]
call fcn.004da8bc
test al, al
jne 0x4f34f4
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, 0xa
call fcn.004adefc
test al, al
je 0x4f34f4
xor eax, eax
push ebp
push 0x4f34e1
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.004ae560
test al, al
je 0x4f34d7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
cmp word [eax + 0x2fa], 0
je 0x4f3365
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 + 0x330]
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 + 0x330]
cmp word [eax + 0x30a], 0
je 0x4f33ab
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 + 0x330]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x334]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x30c]
call dword [ebx + 0x308]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
cmp word [eax + 0x2da], 0
je 0x4f34ca
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x12b0]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x7c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x898]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130c]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x78], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x103e]
mov byte [ebp - 0x34], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf7f]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf83]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf76]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf7a]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xf88]
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 + 0x330]
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x334]
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 0x4f34eb
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 0x4f3508
mov eax, dword [ebp - 4]
mov byte [eax + 0xf20], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe78]
cmp byte [eax + 0xe8], 0
jne 0x4f3551
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x51bc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x51c0]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x51b8]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, 0x34a
call fcn.004af5ac
mov eax, dword [ebp - 4]
cmp byte [eax + 0xec5], 0
je 0x4f356b
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.004f2ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f357f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret