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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov byte [ebp - 1], cl
mov esi, edx
mov edi, eax
cmp byte [edi + 0xf9], 2
jne 0x4f65c8
mov byte [edi + 0xf9], 0
mov byte [edi + 0xe9], 0
movzx eax, byte [ebp - 1]
xor al, 1
test al, al
je 0x4f65f2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041659c
xor ecx, ecx
mov edx, 0x4f687c
call fcn.00416904
jmp 0x4f6609
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041659c
xor ecx, ecx
mov edx, 0x4f68c0
call fcn.00416904
call fcn.0041659c
lea edx, [ebp - 8]
call fcn.00417030
movzx eax, byte [edi + 0x4d]
mov ebx, eax
test al, al
je 0x4f6629
xor edx, edx
mov eax, edi
call fcn.004f7a7c
mov ecx, ebx
mov dl, 1
mov eax, edi
call fcn.004f63b8
mov dword [edi + 0x48], esi
cmp dword [edi + 0x48], 0
je 0x4f686d
push 0
push 3
mov ecx, dword [edi + 0x48]
mov dl, 1
mov eax, dword [0x4ec188]
call fcn.004ec358
mov dword [edi + 0x84], eax
mov eax, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
mov dword [eax + 0x2c], edi
mov dword [eax + 0x28], 0x4f693c
mov eax, dword [edi + 0x84]
mov edx, dword [edi + 0x18]
mov dword [eax + 0x4c], edx
mov eax, dword [edi + 0x84]
mov dword [eax + 0x50], 0x65
test bl, bl
je 0x4f66b0
push 0
mov ecx, dword [edi + 0x48]
mov dl, 1
mov eax, dword [0x4f3bb0]
call fcn.004f4bec
mov dword [edi + 0x78], eax
mov eax, dword [edi + 0x78]
mov edx, dword [eax]
call dword [edx + 0x1c]
xor edx, edx
mov eax, dword [edi + 0x78]
call fcn.004f4fa4
mov eax, dword [edi + 0x84]
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x14], edx
movzx eax, byte [ebp - 1]
xor al, 1
test al, al
je 0x4f6703
push 2
push 0
push 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x84]
call fcn.004f6100
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
mov edx, 0x11
mov eax, edi
call fcn.004ebae4
mov eax, dword [edi + 0x60]
call fcn.004ebf30
lea edx, [ebp - 0x34]
mov eax, dword [edi + 0x60]
call fcn.004ebf70
mov eax, dword [ebp - 0x34]
mov edx, 0xa
call fcn.0040a60c
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x34]
mov eax, dword [edi + 0x60]
call fcn.004ebf70
mov eax, dword [ebp - 0x30]
mov edx, 0xa
call fcn.0040a60c
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x84]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x24], edx
movzx edx, byte [0x51688c]
mov eax, dword [edi + 0x84]
call fcn.004ec6a8
cmp dword [edi + 0x78], 0
je 0x4f6771
mov eax, dword [edi + 0x78]
call fcn.004f5220
fstp qword [ebp - 0x20]
wait
jmp 0x4f6779
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
fld qword [esi + 0x28]
call fcn.00403460
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
fild qword [ebp - 0x34]
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea edx, [ebp - 0x4c]
mov eax, dword [edi + 0x84]
call fcn.004ec748
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x3c]
call fcn.0040a8cc
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [edi + 0x84]
add eax, 0x20
push eax
push edi
push 0x4f6574
push edi
push 0x4f6a24
push edi
push 0x4f657c
push 0
movzx eax, byte [edi + 0x80]
push eax
mov eax, dword [edi + 0x64]
push eax
lea edx, [ebp - 0x4c]
mov eax, dword [edi + 0x84]
call fcn.004ec748
lea ecx, [ebp - 0x4c]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
call fcn.004e67d8
mov dword [edi + 0x7c], eax
test bl, bl
je 0x4f6859
mov eax, dword [ebp + 8]
mov dword [edi + 0x70], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x74], eax
mov eax, dword [edi + 0x84]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp + 8]
mov dword [eax + 0x10], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x14], edx
mov dword [edi + 0x9c], 0x80000001
push dword [ebp + 0xc]
push dword [ebp + 8]
lea edx, [edi + 0xb8]
mov eax, edi
call fcn.004f7e48
push dword [ebp + 0xc]
push dword [ebp + 8]
lea edx, [edi + 0xb8]
mov eax, edi
call fcn.004f7f74
mov byte [edi + 0xe8], 0
push 0
call fcn.0041659c
mov ecx, dword [ebp - 8]
mov edx, 0x4f6908
call fcn.0041703c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8