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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov byte [esp + 4], cl
mov dword [esp + 8], 0
movzx eax, byte [esp + 4]
test eax, eax
je 0x1015861b
mov cl, byte [esp + 4]
mov byte [0x101dfa08], cl
movzx edx, byte [0x101dfa08]
test edx, edx
je 0x101587d9
mov eax, dword [0x101d84c4]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x18], edx
mov eax, 4
imul ecx, eax, 0x1a
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ecx + eax]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x18]
call dword [esp + 0x2c]
movzx edx, al
test edx, edx
je 0x101587d9
or dword [esp + 8], 1
push 0x101c9464
lea ecx, [esp + 0x94]
call fcn.10012e10
mov dword [esp + 0x40], eax
lea eax, [esp + 0x17]
mov dword [esp + 0x34], eax
mov ecx, dword [0x101d84bc]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x38e4]
add eax, 1
mov byte [esp + 0xe], al
lea ecx, [esp + 0xe]
mov dword [esp + 0x68], ecx
lea edx, [esp + 0xf]
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
or dword [esp + 8], 2
mov edx, dword [esp + 0x34]
push edx
mov eax, dword [esp + 0x78]
push eax
mov ecx, dword [esp + 0x78]
push ecx
lea ecx, [esp + 0x84]
call fcn.10160980
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x1c]
call fcn.10016950
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x38]
push ecx
mov edx, dword [esp + 0x40]
push edx
mov ecx, dword [esp + 0x48]
call fcn.10017270
mov dword [esp + 0x50], eax
mov eax, dword [0x101d84bc]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x44]
add ecx, 0x38e8
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x20]
call fcn.10016950
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x48]
push ecx
mov edx, dword [esp + 0x50]
push edx
mov ecx, dword [esp + 0x58]
call fcn.10017270
mov dword [esp + 0x5c], eax
mov dword [esp + 0x10], 0x101c8c0c
mov eax, dword [esp + 0x10]
add eax, 1
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx]
mov byte [esp + 0xc], dl
add dword [esp + 0x10], 1
cmp byte [esp + 0xc], 0
jne 0x1015876f
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x54]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x58]
push ecx
push 0x101c8c0c
mov ecx, dword [esp + 0x64]
call fcn.10017270
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x60]
call fcn.10016950
mov dword [esp + 0x64], eax
movss xmm0, dword [0x101ca44c]
mov edx, dword [esp + 0x64]
xor cl, cl
call fcn.10158120
movzx edx, al
test edx, edx
je 0x101587d9
mov dword [esp + 0x24], 1
jmp 0x101587e1
mov dword [esp + 0x24], 0
mov al, byte [esp + 0x24]
mov byte [esp + 0xd], al
mov ecx, dword [esp + 8]
and ecx, 2
je 0x10158800
and dword [esp + 8], 0xfffffffd
lea ecx, [esp + 0x78]
call fcn.10016640
mov edx, dword [esp + 8]
and edx, 1
je 0x1015881a
and dword [esp + 8], 0xfffffffe
lea ecx, [esp + 0x90]
call fcn.10016640
movzx eax, byte [esp + 0xd]
test eax, eax
je 0x1015882a
mov byte [0x101dfa08], 0
mov esp, ebp
pop ebp
ret