Function at 0x4f35d0
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.004daeb4
test al, al
jne 0x4f3b77
xor eax, eax
push ebp
push 0x4f3b6d
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 0x4f3653
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.004afad4
mov eax, dword [ebp - 4]
cmp dword [eax + 0xacc], 1
jle 0x4f3678
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.004af5f4
mov eax, dword [ebp - 4]
cmp dword [eax + 0xaa0], 0
jle 0x4f37ce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe78]
mov eax, dword [eax + 0x1a4]
sub eax, 5
je 0x4f37ce
mov byte [ebp - 0x19], 0
xor eax, eax
mov dword [ebp - 0xc], eax
call fcn.004bb884
mov eax, dword [eax + 0x300]
call fcn.004b4e00
jmp 0x4f37b4
call fcn.004bb884
mov eax, dword [eax + 0x300]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0xc]
jg 0x4f36da
mov byte [ebp - 0x19], 1
jmp 0x4f37b4
call fcn.004bb884
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 0x4f37b1
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x2d], 0
je 0x4f37b1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1300]
call fcn.004cbc88
test al, al
je 0x4f37b1
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x9a0]
xor edx, edx
call fcn.004b1828
test al, al
je 0x4f37b1
lea ecx, [ebp - 0x24]
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.004b1428
test al, al
je 0x4f37a9
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004f3594
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.004b02dc
mov eax, dword [ebp - 0x10]
call fcn.00403d2c
inc dword [ebp - 0xc]
cmp byte [ebp - 0x19], 0
je 0x4f36be
call fcn.004bb884
mov eax, dword [eax + 0x300]
call fcn.004b4e18
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 0x4f3af6
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 0x4f3837
mov eax, dword [ebp - 8]
cmp byte [eax + 0xd4], 0
je 0x4f3837
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
cmp word [eax + 0x2da], 0
je 0x4f3aec
mov eax, dword [ebp - 4]
call fcn.004daeb4
test al, al
jne 0x4f3aec
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, 0xa
call fcn.004ae424
test al, al
je 0x4f3aec
xor eax, eax
push ebp
push 0x4f3ad9
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.004aea88
test al, al
je 0x4f3acf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
cmp word [eax + 0x2fa], 0
je 0x4f395d
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 0x4f39a3
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 0x4f3ac2
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 0x4f3ae3
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 0x4f3b00
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 0x4f3b49
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.004afad4
mov eax, dword [ebp - 4]
cmp byte [eax + 0xec5], 0
je 0x4f3b63
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.004f34f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f3b77
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret