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

Disassembly:
sub esp, 0x44
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0x68]
test ebx, ebx
je 0x4f1941
push ebp
xor ebp, ebp
mov byte [esp + 0xe], 0
push esi
test eax, eax
je 0x4f173c
mov esi, dword [esp + 0x64]
mov byte [esp + 0x12], 1
test esi, esi
je 0x4f1737
cmp esi, 4
jb 0x4f1737
push esi
push ebp
push eax
call fcn.004fa8e0
mov ebp, esi
add esp, 0xc
shr ebp, 2
test ebp, ebp
jne 0x4f173c
mov byte [esp + 0x12], 0
mov dword [ebx], 0
test edi, edi
je 0x4f174c
mov dword [edi], 0
call fcn.004f62e0
mov edx, eax
mov dword [esp + 0x18], edx
test edx, edx
je 0x4f1927
mov ecx, dword [esp + 0x6c]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x1c], 0x48
test ecx, ecx
mov dword [esp + 0x14], 1
mov al, 1
mov dword [esp + 0x2c], 0
cmove ecx, dword [esp + 0x1c]
mov dword [esp + 0x6c], ecx
xor ecx, ecx
mov byte [esp + 0x13], al
mov dword [esp + 0x1c], ecx
cmp byte [esp + 0x12], cl
je 0x4f17c6
cmp byte [esp + 0x68], cl
jne 0x4f17c6
call fcn.004f6870
mov edx, dword [esp + 0x18]
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x4f17c2
mov ecx, 0xfffffffd
xor al, al
mov dword [esp + 0x14], ecx
jmp 0x4f17cb
mov al, byte [esp + 0x13]
mov ecx, 1
mov dword [esp + 0x4c], ebx
test al, al
je 0x4f18ee
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push dword [esp + 0x78]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call edx
test eax, eax
jne 0x4f18d9
cmp byte [esp + 0x68], al
je 0x4f182e
cmp byte [esp + 0x12], al
je 0x4f1827
cmp esi, ebp
jae 0x4f181f
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov dword [ecx + esi*4], eax
test edi, edi
je 0x4f1818
add dword [edi], 4
mov edx, dword [esp + 0x18]
inc esi
jmp 0x4f17d7
mov dword [esp + 0x14], 2
mov edx, dword [esp + 0x18]
inc esi
jmp 0x4f17d7
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4f18c1
cmp byte [esp + 0x12], 0
je 0x4f18c1
cmp esi, ebp
jae 0x4f18b9
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], 0
push ecx
push 0x1c
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], 0
push ecx
push 0
push dword [esp + 0x3c]
xorps xmm0, xmm0
movdqu xmmword [esp + 0x44], xmm0
movq qword [esp + 0x54], xmm0
call eax
test eax, eax
jne 0x4f18c1
cmp dword [esp + 0x4c], eax
je 0x4f18c1
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
mov dword [ecx + esi*4], eax
test edi, edi
je 0x4f1898
add dword [edi], 4
xorps xmm0, xmm0
mov dword [esp + 0x4c], 0
movdqu xmmword [esp + 0x30], xmm0
mov dword [esp + 0x48], 0
movq qword [esp + 0x40], xmm0
jmp 0x4f18c1
mov dword [esp + 0x14], 2
test ebx, ebx
je 0x4f18cb
push ebx
call fcn.004f4f30
mov ebx, dword [esp + 0x2c]
inc esi
mov edx, dword [esp + 0x18]
jmp 0x4f17d7
test ebx, ebx
je 0x4f18ea
cmp byte [esp + 0x68], 0
jne 0x4f18ea
push ebx
call fcn.004f4f30
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov dword [eax], esi
test esi, esi
jne 0x4f1910
lea eax, [esi - 4]
pop esi
pop ebp
pop edi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f9e32
add esp, 0x44
ret 0x1c
pop esi
pop ebp
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f9e32
add esp, 0x44
ret 0x1c
pop esi
pop ebp
pop edi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f9e32
add esp, 0x44
ret 0x1c
mov ecx, dword [esp + 0x48]
or eax, 0xffffffff
pop edi
pop ebx
xor ecx, esp
call fcn.004f9e32
add esp, 0x44
ret 0x1c