Function at 0x4f658c
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 0x4f65ac
mov byte [edi + 0xf9], 0
mov byte [edi + 0xe9], 0
movzx eax, byte [ebp - 1]
xor al, 1
test al, al
je 0x4f65d6
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041659c
xor ecx, ecx
mov edx, 0x4f6860
call fcn.00416904
jmp 0x4f65ed
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041659c
xor ecx, ecx
mov edx, 0x4f68a4
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 0x4f660d
xor edx, edx
mov eax, edi
call fcn.004f7a60
mov ecx, ebx
mov dl, 1
mov eax, edi
call fcn.004f639c
mov dword [edi + 0x48], esi
cmp dword [edi + 0x48], 0
je 0x4f6851
push 0
push 3
mov ecx, dword [edi + 0x48]
mov dl, 1
mov eax, dword [0x4ec16c]
call fcn.004ec33c
mov dword [edi + 0x84], eax
mov eax, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
mov dword [eax + 0x2c], edi
mov dword [eax + 0x28], 0x4f6920
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 0x4f6694
push 0
mov ecx, dword [edi + 0x48]
mov dl, 1
mov eax, dword [0x4f3b94]
call fcn.004f4bd0
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.004f4f88
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 0x4f66e7
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.004f60e4
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
mov edx, 0x11
mov eax, edi
call fcn.004ebac8
mov eax, dword [edi + 0x60]
call fcn.004ebf14
lea edx, [ebp - 0x34]
mov eax, dword [edi + 0x60]
call fcn.004ebf54
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.004ebf54
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.004ec68c
cmp dword [edi + 0x78], 0
je 0x4f6755
mov eax, dword [edi + 0x78]
call fcn.004f5204
fstp qword [ebp - 0x20]
wait
jmp 0x4f675d
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.004ec72c
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 0x4f6558
push edi
push 0x4f6a08
push edi
push 0x4f6560
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.004ec72c
lea ecx, [ebp - 0x4c]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
call fcn.004e67bc
mov dword [edi + 0x7c], eax
test bl, bl
je 0x4f683d
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.004f7e2c
push dword [ebp + 0xc]
push dword [ebp + 8]
lea edx, [edi + 0xb8]
mov eax, edi
call fcn.004f7f58
mov byte [edi + 0xe8], 0
push 0
call fcn.0041659c
mov ecx, dword [ebp - 8]
mov edx, 0x4f68ec
call fcn.0041703c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8