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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x3b4
mov eax, dword [0x102f0d80]
xor eax, esp
mov dword [esp + 0x3b0], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [0x102ae4d4]
push esi
cmp dword [eax + 0x1c], 0x10
mov eax, dword [ecx + 4]
cmova ebx, dword [0x102ae4d8]
mov esi, dword [ebp + 0x20]
push edi
xor edi, edi
mov dword [esp + 0x44], ebx
cmp dword [eax + 0x276c], 0
mov ebx, dword [edx]
mov dword [esp + 0x20], edi
mov edi, 0x20
mov dword [esp + 0x3c], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], edx
je 0x1015888f
cmp ebx, 4
jb 0x1015888f
mov esi, dword [ebp + 0x18]
or ebx, 0xffffffff
mov eax, dword [esp + 0x18]
jmp 0x101588c9
mov ecx, dword [esi]
mov esi, dword [ebp + 0x18]
cmp edi, esi
sbb eax, eax
imul ebx, esi
mov dword [ecx], 1
neg eax
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 8], eax
add ebx, dword [ecx + 0x1a8]
add ebx, dword [0x102ae500]
add ebx, dword [0x102ae4fc]
add ebx, dword [0x102ae4f8]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ebx
mov dword [edi], ebx
mov edx, dword [edx]
mov edi, dword [esp + 0x20]
cmp edx, 4
jbe 0x10158f90
add edx, 0xfffffffc
cmp esi, 0x1c
jae 0x1015892b
mov ecx, dword [esp + 0x18]
mov eax, edx
mov edi, dword [esp + 0x14]
add ecx, 0x10
shl eax, 4
add eax, edx
bsr eax, eax
mov edi, dword [edi + 4]
add eax, esi
cmp eax, 0x20
lea eax, [esp + 0x2a4]
push eax
push edx
push ecx
jae 0x10158921
mov eax, dword [edi + 0x272c]
call eax
jmp 0x1015895c
mov eax, dword [edi + 0x2730]
call eax
jmp 0x1015895c
cmp esi, 0x20
ja 0x1015894a
mov ecx, dword [ecx + 4]
lea edi, [esp + 0x2a4]
push edi
add eax, 0x10
push edx
push eax
mov eax, dword [ecx + 0x2734]
call eax
jmp 0x1015895c
lea ecx, [esp + 0x2a4]
add eax, 0x20
push ecx
push edx
push eax
call fcn.1015df70
mov edx, dword [esp + 0x20]
add esp, 0xc
mov edi, eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x1c], ecx
cmp dword [ecx + 0x2764], 0
jne 0x10158a7a
movss xmm0, dword [esp + 0x2a8]
ucomiss xmm0, dword [0x102093dc]
lahf
test ah, 0x44
jp 0x10158a7a
mov ecx, dword [esp + 0x2c]
mov eax, 1
mov ecx, dword [ecx]
cmp esi, 0x20
ja 0x101589cb
cmp ecx, eax
jbe 0x10158a4b
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
mov esi, dword [esp + 0x18]
cmp edx, dword [esi + eax*4]
mov esi, dword [ebp + 0x18]
jne 0x10158a72
inc eax
cmp eax, ecx
jb 0x101589b1
jmp 0x10158a50
cmp ecx, 1
jbe 0x10158a4b
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
mov esi, dword [esp + 0x18]
cmp edx, dword [esi + eax*8]
mov esi, dword [ebp + 0x18]
jne 0x10158a72
mov ebx, dword [esp + 0x18]
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + eax*8 + 4]
mov ebx, dword [esp + 0x28]
mov esi, dword [ebp + 0x18]
jne 0x10158a72
inc eax
cmp eax, ecx
jb 0x101589d6
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edx + 8], eax
mov eax, dword [edx + 0x1a8]
mov dword [edx], 0
mov dword [edx + 0xc], ecx
add eax, dword [0x102ae500]
add eax, dword [0x102ae4fc]
add eax, dword [0x102ae4f8]
add eax, esi
cmp eax, ebx
cmovb ebx, eax
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x28], ebx
sbb edi, edi
neg edi
jmp 0x10158f90
cmp esi, 0x20
ja 0x101589ff
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cdq
mov dword [ecx + 8], eax
mov eax, dword [ecx + 0x1a8]
mov dword [ecx], 0
mov dword [ecx + 0xc], edx
jmp 0x10158a21
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
cmp dword [ecx + 0x2768], 0
je 0x10158a9b
mov eax, dword [edx]
cmp dword [eax + 0x22c], 0
jne 0x10158d07
cmp ebx, 0xffffffff
jne 0x10158d07
mov eax, dword [edx]
cmp dword [eax + 0x238], 0
je 0x10158aad
xor edi, edi
lea ecx, [edi + 4]
jmp 0x10158aaf
mov ecx, edi
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
cmp ecx, eax
lea edx, [eax - 1]
cmovb edx, ecx
mov dword [esp + 0x40], edx
cmp edi, edx
ja 0x10158d07
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2a4]
movd xmm0, esi
mov eax, esi
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x101fcc40]
mov eax, edi
imul eax, esi
sub edx, ecx
mov dword [esp + 0x5c], edx
cvtpd2ps xmm1, xmm0
mov dword [esp + 0x24], eax
lea eax, [ecx + edi*8]
mov dword [esp + 0x34], eax
lea eax, [ecx + edi*4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
movss dword [esp + 0x38], xmm1
nop dword [eax]
mov esi, dword [esp + 0x5c]
movss xmm0, dword [esi + eax]
comiss xmm0, xmm1
mov esi, dword [ebp + 0x18]
jae 0x10158ce8
mov esi, dword [esp + 0x14]
xor ecx, ecx
cmp dword [esp + 0x20], ecx
mov eax, 4
cmove ecx, eax
mov eax, dword [ebp + 0x24]
mov eax, dword [ecx + eax]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [ecx + eax]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x248]
mov eax, dword [eax + 0x23c]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x64], edx
mov edx, dword [eax + 0x25bc]
mov eax, dword [eax + 0x25b8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x70], edx
mov edx, dword [ebp + 0x18]
mov esi, dword [ecx + eax]
mov eax, dword [esp + 0x2c]
push esi
push edi
mov ecx, dword [eax]
lea eax, [edi + edx]
sub ecx, edi
mov dword [esp + 0x74], ecx
push ecx
cmp eax, 0x20
ja 0x10158bb5
push dword [esp + 0x3c]
call fcn.1015ecb0
jmp 0x10158bce
cmp edx, 0x20
ja 0x10158bc5
push dword [esp + 0x3c]
call fcn.1015f0b0
jmp 0x10158bce
push dword [esp + 0x40]
call fcn.1015f4a0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
lea eax, [ecx + 8]
mov edx, dword [esp + 0x60]
mov dword [eax], 0
push eax
push dword [esp + 0x68]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x70]
mov dword [ecx], 2
push dword [ebp + 0x18]
mov dword [ecx + 0x10], edx
push dword [ebp + 0x10]
mov dword [ecx + 0x38], esi
push dword [ebp + 0xc]
push dword [esp + 0x5c]
push edi
push dword [esp + 0x8c]
push dword [esp + 0x94]
push dword [esp + 0x78]
push esi
push dword [eax + 4]
call fcn.10156e70
mov esi, dword [ebp + 0x18]
add esp, 0x34
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x14], edi
cmp esi, 0x20
ja 0x10158c5b
xor esi, esi
test edi, edi
je 0x10158c8d
mov ebx, dword [esp + 0x18]
lea ecx, [eax + 0x18]
mov eax, dword [ebx + esi*4]
lea ecx, [ecx + 8]
cdq
inc esi
mov dword [ecx - 8], eax
mov dword [ecx - 4], edx
cmp esi, edi
jb 0x10158c47
jmp 0x10158c85
xor edx, edx
test edi, edi
je 0x10158c90
mov ebx, dword [esp + 0x18]
lea esi, [eax + 0x18]
nop dword [eax + eax]
mov eax, dword [ebx + edx*8]
lea esi, [esi + 8]
mov ecx, dword [ebx + edx*8 + 4]
inc edx
mov dword [esi - 8], eax
mov dword [esi - 4], ecx
cmp edx, edi
jb 0x10158c70
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
mov esi, dword [ebp + 0x18]
mov ecx, dword [eax + 0x1a8]
add ecx, dword [esp + 0x24]
add ecx, dword [0x102ae500]
add ecx, dword [0x102ae4fc]
add ecx, dword [0x102ae4f8]
mov edx, dword [esp + 0x50]
mov eax, ecx
not eax
cmp edx, eax
jae 0x10158cbc
add ecx, edx
jmp 0x10158cbf
or ecx, 0xffffffff
movss xmm1, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
cmp ecx, ebx
jae 0x10158ce0
xor eax, eax
mov ebx, ecx
cmp dword [esp + 0x20], eax
mov dword [esp + 0x28], ebx
sete al
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
inc edi
add eax, 4
add edx, 8
mov dword [esp + 0x30], eax
add ecx, esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], ecx
cmp edi, dword [esp + 0x40]
jbe 0x10158b20
mov edi, dword [esp + 0x14]
mov edx, dword [edi]
mov ecx, dword [edx + 0x22c]
test ecx, ecx
je 0x10158f8c
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx]
cmp ecx, eax
lea edi, [eax - 1]
mov eax, edi
mov edi, dword [esp + 0x14]
cmovb eax, ecx
mov dword [esp + 0x30], eax
test eax, eax
je 0x10158f8c
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], 0
cmp dword [edx + 0x28], 0
jbe 0x10158f8c
mov dword [esp + 0x24], eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push esi
push eax
lea eax, [esp + 0x2c8]
push eax
push dword [ebx]
lea eax, [esp + 0x98]
push eax
push edi
call fcn.101568d0
add esp, 0x20
test eax, eax
je 0x10158f76
mov eax, dword [edi]
cmp dword [eax + 0x238], 0
je 0x10158db2
mov eax, dword [esp + 0x24]
mov ebx, 1
jmp 0x10158dbc
mov ebx, dword [esp + 0x40]
mov eax, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
cmp ebx, eax
ja 0x10158f72
movd xmm0, esi
lea ecx, [esp + ebx*8 + 0x2b0]
cvtdq2pd xmm0, xmm0
mov eax, esi
mov dword [esp + 0x38], ecx
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101fcc40]
mov eax, ebx
shl eax, 7
mov dword [esp + 0x34], eax
movsd qword [esp + 0x70], xmm0
nop dword [eax + eax]
mov eax, dword [esp + 0x2c]
movsd xmm0, qword [ecx]
mov eax, dword [eax]
sub eax, ebx
push eax
sub esp, 8
movsd qword [esp], xmm0
call fcn.10161260
fstp qword [esp + 0x5c]
movsd xmm0, qword [esp + 0x5c]
add esp, 0xc
comisd xmm0, xmmword [esp + 0x70]
jae 0x10158f4c
mov eax, dword [esp + 0x14]
mov edi, dword [eax]
cmp dword [edi + 0x234], 0
je 0x10158e9f
mov edx, dword [ebp + 0x18]
mov ecx, 5
cmp edx, 0x11
ja 0x10158e87
bsr eax, ebx
mov esi, 0x20
mov ecx, esi
sub ecx, eax
sub ecx, edx
cmp ecx, 0xf
jae 0x10158e6d
bsr eax, ebx
mov ecx, esi
sub ecx, eax
sub ecx, edx
jmp 0x10158e72
mov ecx, 0xf
mov eax, dword [esp + 0x14]
mov edi, 5
cmp ecx, edi
cmova edi, ecx
mov ecx, 5
jmp 0x10158e8c
mov edi, 0xf
mov esi, 5
cmp ecx, edi
ja 0x10158f4c
mov ecx, dword [esp + 0x20]
jmp 0x10158eb4
mov edi, dword [edi + 0x230]
mov esi, edi
mov ecx, dword [esp + 0x20]
jmp 0x10158eb4
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x24]
xor ebx, ebx
mov eax, dword [eax]
test ecx, ecx
mov ecx, dword [esp + 0x14]
sete bl
mov ecx, dword [ecx + 4]
push dword [edx + ebx*4]
mov edx, dword [esp + 0x40]
push dword [edx + ebx*4]
mov edx, dword [ebp + 0x18]
push dword [eax + 0x248]
push dword [eax + 0x23c]
mov eax, dword [esp + 0x3c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x5c]
push esi
push dword [esp + 0x3c]
push edx
push dword [eax]
mov eax, dword [esp + 0x60]
add eax, 0x2860
add eax, ecx
push eax
push dword [ecx + 0x25bc]
mov eax, dword [esp + 0x7c]
push dword [ecx + 0x25b8]
push dword [eax + ebx*4]
push dword [esp + 0x54]
push dword [esp + 0x54]
call fcn.10156b50
add esp, 0x44
test eax, eax
je 0x10158f3b
cmp eax, dword [esp + 0x28]
jae 0x10158f3b
mov ecx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
jmp 0x10158f3f
mov ecx, dword [esp + 0x20]
inc esi
cmp esi, edi
jbe 0x10158eb0
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
inc ebx
sub dword [esp + 0x34], 0xffffff80
add ecx, 8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x38], ecx
cmp ebx, dword [esp + 0x24]
jbe 0x10158e00
mov esi, dword [ebp + 0x18]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [edi]
mov eax, dword [esp + 0x80]
cmp eax, dword [ecx + 0x28]
mov eax, dword [esp + 0x30]
jb 0x10158d66
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
cmp edx, 0xffffffff
jne 0x10158fdc
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + edi*4]
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
mov eax, 0x20
cmp eax, esi
mov dword [ecx], 1
sbb eax, eax
imul edx, esi
neg eax
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 8], eax
add edx, dword [ecx + 0x1a8]
add edx, dword [0x102ae500]
add edx, dword [0x102ae4fc]
add edx, dword [0x102ae4f8]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x3bc]
mov dword [eax], edi
mov eax, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
mov dword [eax], edx
xor ecx, esp
mov eax, 1
call fcn.1011bad5
mov esp, ebp
pop ebp
ret