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

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [ecx + 0x30]
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp ebx, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
je 0x300161a3
lea ebx, [ebx]
mov esi, dword [ebx]
mov al, byte [esi + 0x11]
test al, al
je case.0x30016113.4
cmp dword [esi + 0x14], 3
jge case.0x30016113.4
mov al, byte [esi + 0x19]
test al, al
je case.0x30016113.4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
dec eax
cmp eax, 4
ja case.0x30016113.4
jmp dword [eax*4 + 0x3001654c]
mov eax, dword [esi + 0x14]
test eax, eax
jmp 0x30016134
mov eax, dword [esi + 0x20]
test eax, eax
jne case.0x30016113.4
mov eax, dword [esi + 0x48]
test eax, eax
je 0x30016136
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jne case.0x30016113.4
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x78]
dec eax
cmp eax, 4
ja case.0x30016143.4
jmp dword [eax*4 + 0x30016560]
lea edi, [esp + 0x10]
lea ebp, [esp + 0x34]
jmp case.0x30016143.4
lea edi, [esp + 0x28]
lea ebp, [esp + 0x14]
jmp case.0x30016143.4
lea edi, [esp + 0x2c]
lea ebp, [esp + 0x20]
jmp case.0x30016143.4
lea edi, [esp + 0x30]
lea ebp, [esp + 0x1c]
push 8
call fcn.3007a1f0
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [edi]
add esp, 4
test ecx, ecx
mov dword [eax + 4], 0
jne 0x3001618f
mov dword [edi], eax
jmp 0x30016195
mov edx, dword [ebp]
mov dword [edx + 4], eax
mov dword [ebp], eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x300160e0
mov eax, dword [esp + 0x2c]
test eax, eax
mov ebx, eax
je 0x30016220
lea ecx, [ecx]
mov esi, dword [esp + 0x10]
test esi, esi
lea edi, [esp + 0x10]
je 0x30016219
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x28]
mov eax, dword [esi]
add eax, 0x28
mov ebp, edx
sub ebp, dword [eax]
cmp ebp, 5
jg 0x300161f0
mov ebp, dword [eax + 4]
sub ebp, dword [ecx + 0x2c]
cmp ebp, 5
jg 0x300161f0
mov ebp, dword [ecx + 0x30]
sub ebp, dword [eax + 8]
cmp ebp, 5
jg 0x300161f0
mov eax, dword [eax + 0xc]
sub eax, dword [ecx + 0x34]
cmp eax, 5
jle 0x300161fe
mov edi, dword [edi]
mov esi, dword [esi + 4]
add edi, 4
test esi, esi
jne 0x300161c1
jmp 0x30016219
mov edx, dword [esi]
push edx
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.3000f190
mov eax, dword [esi + 4]
push esi
mov dword [edi], eax
call fcn.30208320
add esp, 4
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x300161b0
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x14], eax
je 0x3001637f
mov ebx, dword [esp + 0x10]
xor ebp, ebp
test ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ecx
je 0x3001636c
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
add edi, 0x28
mov eax, dword [ebx]
mov dl, byte [eax + 0x50]
test dl, dl
lea ecx, [eax + 0x28]
jne 0x3001631e
mov esi, dword [edi]
mov edx, dword [ecx]
mov eax, esi
sub eax, edx
jns 0x30016273
neg eax
cmp eax, 5
jg 0x300162bf
mov edx, dword [ecx + 0xc]
mov eax, dword [edi + 8]
mov ebp, edx
sub ebp, eax
cmp ebp, 5
jg 0x300162bb
sub eax, edx
cmp eax, 8
jg 0x300162bb
mov eax, dword [edi + 4]
mov edx, dword [ecx + 4]
sub edx, eax
sub eax, esi
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fdivp st(1)
fcomp qword [0x302944c8]
fnstsw ax
test ah, 0x41
jnp 0x30016338
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x3001631e
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
mov ebp, dword [edi + 8]
sub eax, edx
mov edx, dword [edi + 0xc]
sub edx, ebp
cmp edx, eax
jl 0x300162dd
mov eax, ecx
mov edx, edi
jmp 0x300162e1
mov eax, edi
mov edx, ecx
mov ebp, dword [edx + 8]
sub ebp, dword [eax + 8]
cmp ebp, 5
jg 0x3001631a
mov eax, dword [eax + 0xc]
sub eax, dword [edx + 0xc]
cmp eax, 5
jg 0x3001631a
mov ecx, dword [ecx + 4]
mov edx, ecx
sub edx, esi
cmp edx, 5
jg 0x3001631a
sub esi, ecx
cmp esi, 0xc
jg 0x3001631a
mov eax, dword [esp + 0x1c]
mov ebp, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], eax
jmp 0x3001631e
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov ebx, dword [ebx + 4]
add edx, 4
test ebx, ebx
mov dword [esp + 0x1c], edx
jne 0x30016257
jmp 0x30016342
mov eax, dword [esp + 0x1c]
mov ebp, ebx
mov dword [esp + 0x20], eax
test ebp, ebp
je 0x3001636c
mov ecx, dword [ebp]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x28]
push eax
call fcn.3000f190
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x20]
push ebp
mov dword [ecx], eax
call fcn.30208320
add esp, 4
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 4]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x30016230
mov eax, dword [esp + 0x30]
test eax, eax
mov ebp, eax
je 0x300164c8
lea ecx, [ecx]
mov ebx, dword [ebp]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x3c]
mov edx, dword [ecx]
push eax
push edx
lea ecx, [esp + 0x40]
call fcn.30013120
mov esi, dword [esp + 0x40]
test esi, esi
mov eax, dword [esp + 0x3c]
jne 0x300163ba
test eax, eax
je 0x300164bd
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x300163f8
test esi, esi
mov edi, dword [ecx + 0x1a20]
je 0x3001646e
mov eax, dword [ecx + 0x1b5c]
mov eax, dword [eax + 0x34]
test eax, eax
jne 0x300163e4
push 0xd
call fcn.3018a8f0
mov ecx, dword [esp + 0x48]
push eax
push edi
or esi, 1
push esi
call fcn.3018e7e0
jmp 0x30016470
test esi, esi
je 0x30016400
mov al, 1
jmp 0x30016470
test eax, eax
je 0x3001646e
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x44]
push 0x302943f8
push eax
mov dword [esp + 0x34], 2
call fcn.30107a60
test eax, eax
je 0x3001646e
mov ecx, dword [esp + 0x20]
mov esi, ecx
and esi, 7
mov eax, esi
cmp eax, 7
mov edx, ecx
jne 0x30016444
and edx, 0xfffffff8
mov edx, dword [edx + 0xc]
mov eax, edx
and eax, esi
cmp eax, 2
jne 0x3001644e
and edx, 0x1f
mov eax, edx
cmp eax, 6
jne 0x3001646e
cmp esi, 7
jne 0x3001645e
and ecx, 0xfffffff8
mov ecx, dword [ecx + 0xc]
and ecx, 0xfffffff8
mov eax, dword [ecx]
call dword [eax + 8]
test al, al
je 0x3001646e
mov al, 1
jmp 0x30016470
xor al, al
test al, al
je 0x300164bd
mov esi, dword [esp + 0x10]
test esi, esi
lea edi, [esp + 0x10]
je 0x300164bd
mov ecx, dword [esi]
add ecx, 0x28
push ecx
mov ecx, ebx
call fcn.300147c0
test al, al
jne 0x3001649f
mov edi, dword [edi]
mov esi, dword [esi + 4]
add edi, 4
test esi, esi
jne 0x30016480
jmp 0x300164bd
mov edx, dword [esi]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x24]
push edx
push eax
call fcn.3000f190
mov ecx, dword [esi + 4]
push esi
mov dword [edi], ecx
call fcn.30208320
add esp, 4
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x30016390
mov eax, dword [esp + 0x10]
test eax, eax
je 0x300164e2
mov esi, dword [eax + 4]
push eax
call fcn.30208320
add esp, 4
test esi, esi
mov eax, esi
jne 0x300164d0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x30016502
lea ebx, [ebx]
mov esi, dword [eax + 4]
push eax
call fcn.30208320
add esp, 4
test esi, esi
mov eax, esi
jne 0x300164f0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x30016522
lea ebx, [ebx]
mov esi, dword [eax + 4]
push eax
call fcn.30208320
add esp, 4
test esi, esi
mov eax, esi
jne 0x30016510
mov eax, dword [esp + 0x30]
test eax, eax
je 0x30016542
lea ebx, [ebx]
mov esi, dword [eax + 4]
push eax
call fcn.30208320
add esp, 4
test esi, esi
mov eax, esi
jne 0x30016530
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret