Function at 0x1005cd90
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1d8
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edi
cmp dword [edi + 0x460], 0
jge 0x1005ce16
test byte [edi], 2
lea eax, [esp + 0x70]
mov dword [esp + 0x74], 0xffffffff
lea ecx, [edi + 0x40]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
push eax
mov dword [esp + 0x74], 0x1b00d9
je 0x1005ce07
mov dword [esp + 0x74], 0x20002
call fcn.1005c210
mov eax, dword [edi + 0x40]
dec eax
mov dword [edi + 0x460], eax
cmp dword [edi + 0x464], 0
jge 0x1005ce7f
test byte [edi], 4
jne 0x1005ce7f
lea eax, [esp + 0x70]
mov dword [esp + 0x74], 0xffffffff
push eax
lea ecx, [edi + 0x40]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x74], 0x400041
call fcn.1005c210
mov eax, dword [edi + 0x40]
dec eax
mov dword [edi + 0x464], eax
mov ecx, edi
mov dword [edi + 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.10059280
mov ecx, dword [edi + 0x4c]
xor esi, esi
mov byte [esp + 0xf], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], esi
mov dword [esp + 0x4c], ecx
lea edx, [esi + 8]
test ecx, ecx
jle 0x1005cf08
cmp ecx, edx
mov eax, ecx
cmovl eax, edx
test eax, eax
jle 0x1005cf08
mov ecx, dword [0x10159260]
test ecx, ecx
je 0x1005cef3
inc dword [ecx + 0x370]
imul eax, eax, 0x54
push eax
call fcn.10105fb5
add esp, 4
mov dword [esp + 0x38], eax
mov edx, 8
mov edi, dword [edi + 0x34]
mov dword [esp + 0x2c], edi
test edi, edi
jle 0x1005cf43
cmp edi, 8
mov ecx, edi
cmovl ecx, edx
test ecx, ecx
jle 0x1005cf43
mov eax, dword [0x10159260]
test eax, eax
je 0x1005cf2e
inc dword [eax + 0x370]
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call fcn.10105fb5
add esp, 4
mov dword [esp + 0x34], eax
mov esi, eax
imul ecx, dword [esp + 0x4c], 0x54
push ecx
push 0
push dword [esp + 0x40]
call fcn.101010f0
add esp, 0xc
lea eax, [edi + edi*2]
shl eax, 3
push eax
push 0
push esi
call fcn.101010f0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x20], 0
cmp dword [edx + 0x4c], 0
jle 0x1005d08d
mov edi, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x50], eax
add edi, 0x34
nop dword [eax]
mov ecx, dword [edx + 0x54]
xor edx, edx
add ecx, eax
mov dword [edi - 4], 0xffffffff
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x34], edx
jle 0x1005d0da
or esi, 0xffffffff
mov eax, esi
cmp esi, 0xffffffff
jne 0x1005cfdb
mov eax, dword [esp + 0x28]
or esi, esi
mov ecx, dword [ecx + 0x3c]
mov eax, dword [eax + 0x74]
cmp eax, dword [ecx + edx*4]
jne 0x1005cfcf
mov dword [edi - 4], edx
mov esi, edx
mov ecx, dword [esp + 0x10]
inc edx
mov eax, esi
cmp edx, dword [ecx + 0x34]
jl 0x1005cfb2
cmp eax, 0xffffffff
je 0x1005d0da
push dword [ebp + 8]
mov esi, dword [esp + 0x2c]
lea ecx, [edi - 0x34]
push esi
push dword [esp + 0x24]
call fcn.1005c4b0
test al, al
je 0x1005d0da
mov eax, dword [esi + 0x40]
mov edx, 0x101422bc
shr eax, 8
and al, 1
or byte [esp + 0xf], al
mov eax, dword [edi - 4]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x30]
test eax, eax
mov dword [esp + 0x28], ecx
cmovne edx, eax
mov dword [edi - 8], edx
cmp word [edx], 0
je 0x1005d04f
nop dword [eax]
movzx eax, word [edx + 2]
test ax, ax
je 0x1005d04b
mov ecx, eax
cmp dword [edi], ecx
cmovge ecx, dword [edi]
add edx, 4
mov dword [edi], ecx
cmp word [edx], 0
jne 0x1005d030
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x50]
inc dword [esi + ecx*8]
mov ecx, dword [edi]
cmp dword [esi + edx*8 + 4], ecx
cmovge ecx, dword [esi + edx*8 + 4]
add eax, 0x78
mov dword [esi + edx*8 + 4], ecx
add edi, 0x54
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x50], eax
cmp esi, dword [edx + 0x4c]
jl 0x1005cf90
mov eax, dword [esp + 0x4c]
xor esi, esi
mov dword [esp + 0x54], esi
test eax, eax
jle 0x1005d422
mov esi, dword [esp + 0x38]
add esi, 0x44
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
nop
mov eax, dword [esi - 0x14]
mov edi, dword [esi - 0x10]
add edi, 0x20
sar edi, 5
lea ecx, [eax + eax*2]
mov eax, dword [esi - 4]
mov dword [esp + 0x18], ecx
cmp edi, eax
jle 0x1005d0f9
test eax, eax
je 0x1005d0e4
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [esi - 4]
jmp 0x1005d0e9
mov byte [esp + 0xf], 0
jmp 0x1005e0b3
mov ecx, 8
cmp ecx, edi
mov eax, edi
cmovg eax, ecx
lea ecx, [esi - 8]
push eax
call fcn.10052950
lea eax, [esi - 8]
mov dword [eax], edi
lea eax, [edi*4]
push eax
push 0
push dword [esi]
call fcn.101010f0
mov edx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x34]
lea ecx, [edx*8 + 0xc]
add ecx, eax
mov dword [esp + 0x28], ecx
cmp dword [ecx], 0
jne 0x1005d187
mov edi, dword [eax + edx*8 + 4]
mov eax, dword [ecx + 4]
add edi, 0x20
sar edi, 5
mov dword [esp + 0x1c], eax
cmp edi, eax
jle 0x1005d16c
test eax, eax
je 0x1005d152
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [esp + 0x1c]
jmp 0x1005d157
mov ecx, 8
cmp ecx, edi
mov eax, edi
cmovg eax, ecx
mov ecx, dword [esp + 0x28]
push eax
call fcn.10052950
mov ecx, dword [esp + 0x28]
lea eax, [edi*4]
mov dword [ecx], edi
push eax
push 0
push dword [ecx + 8]
call fcn.101010f0
mov edx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esi - 0x18]
mov dword [esp + 0x30], eax
cmp word [eax], 0
je 0x1005d274
nop dword [eax + eax]
movzx ecx, word [eax + 2]
test cx, cx
je 0x1005d270
movzx edi, word [eax]
cmp edi, ecx
ja 0x1005d257
mov eax, dword [esp + 0x34]
mov esi, edi
mov ecx, edi
sar esi, 5
and ecx, 0x1f
mov dword [esp + 0x48], ecx
mov edx, dword [eax + edx*8 + 0x14]
mov eax, 1
shl eax, cl
test dword [edx + esi*4], eax
jne 0x1005d242
mov eax, dword [esp + 0x24]
mov eax, dword [eax - 0x2c]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1005d242
mov ecx, dword [eax + 0x5c]
test ecx, ecx
je 0x1005d242
mov eax, dword [ecx + 0xc]
mov edx, edi
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx + 0x10]
jae 0x1005d242
test eax, eax
je 0x1005d242
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
inc dword [eax - 0xc]
inc dword [edx + ecx*8 + 8]
mov ecx, dword [eax]
mov edx, dword [esp + 0x48]
mov eax, dword [ecx + esi*4]
bts eax, edx
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov ecx, dword [eax + ecx*8 + 0x14]
mov eax, dword [ecx + esi*4]
bts eax, edx
inc dword [esp + 0x54]
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x30]
inc edi
mov edx, dword [esp + 0x18]
movzx eax, word [eax + 2]
cmp edi, eax
jle 0x1005d1b8
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x30], eax
cmp word [eax], 0
jne 0x1005d1a0
mov esi, dword [esp + 0x24]
add esi, 0x54
sub dword [esp + 0x20], 1
mov dword [esp + 0x24], esi
jne 0x1005d0b0
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
add esi, 0x50
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], eax
nop dword [eax]
mov edi, dword [esi - 0x18]
cmp edi, dword [esi - 4]
jle 0x1005d307
mov eax, dword [0x10159260]
test eax, eax
je 0x1005d2b7
inc dword [eax + 0x370]
mov eax, edi
shl eax, 5
push eax
call fcn.10105fb5
mov edx, dword [esi]
add esp, 4
mov dword [esp + 0x1c], eax
test edx, edx
je 0x1005d302
mov ecx, dword [esi - 8]
shl ecx, 5
push ecx
push edx
push eax
call fcn.10101750
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
je 0x1005d2f5
mov eax, dword [0x10159260]
test eax, eax
je 0x1005d2f5
dec dword [eax + 0x370]
push ecx
call fcn.10105fcb
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [esi], eax
mov dword [esi - 4], edi
mov ecx, dword [esi - 0xc]
mov edx, ecx
mov eax, dword [esi - 0x14]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x28], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x60], eax
cmp ecx, eax
jae 0x1005d3d6
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1005d3c5
xor edi, edi
mov eax, 1
mov ecx, edi
shl eax, cl
test dword [esp + 0x1c], eax
je 0x1005d3bb
mov ecx, dword [esi - 8]
mov eax, edx
sub eax, dword [esp + 0x48]
xorps xmm0, xmm0
shl eax, 3
and eax, 0xffffffe0
movaps xmmword [esp + 0x80], xmm0
add eax, edi
movzx eax, ax
mov dword [esp + 0x88], eax
mov eax, dword [esi - 4]
cmp ecx, eax
jne 0x1005d39b
inc ecx
test eax, eax
je 0x1005d381
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi - 4]
jmp 0x1005d386
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
lea ecx, [esi - 8]
call fcn.1005e250
mov edx, dword [esp + 0x28]
xorps xmm0, xmm0
mov eax, dword [esi - 8]
mov ecx, dword [esp + 0x30]
shl eax, 5
add eax, dword [ecx]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x80]
movups xmmword [eax + 0x10], xmm0
inc dword [esi - 8]
mov esi, ecx
inc edi
cmp edi, 0x20
jb 0x1005d336
add edx, 4
mov dword [esp + 0x28], edx
cmp edx, dword [esp + 0x60]
jb 0x1005d326
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x1005d40a
mov eax, dword [0x10159260]
mov dword [esi - 0x10], 0
mov dword [esi - 0x14], 0
test eax, eax
je 0x1005d3fa
dec dword [eax + 0x370]
push ecx
call fcn.10105fcb
add esp, 4
mov dword [esi - 0xc], 0
add esi, 0x54
sub dword [esp + 0x20], 1
mov dword [esp + 0x30], esi
jne 0x1005d2a0
mov esi, dword [esp + 0x54]
jmp 0x1005d424
xor esi, esi
cmp dword [esp + 0x2c], 0
jle 0x1005d478
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
add edi, 0x14
mov ecx, dword [edi]
test ecx, ecx
je 0x1005d46c
mov eax, dword [0x10159260]
mov dword [edi - 4], 0
mov dword [edi - 8], 0
test eax, eax
je 0x1005d459
dec dword [eax + 0x370]
push ecx
call fcn.10105fcb
mov eax, dword [esp + 0x30]
add esp, 4
mov dword [edi], 0
add edi, 0x18
sub eax, 1
mov dword [esp + 0x2c], eax
jne 0x1005d436
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x1005d4a0
mov eax, dword [0x10159260]
test eax, eax
je 0x1005d48f
dec dword [eax + 0x370]
push ecx
call fcn.10105fcb
add esp, 4
mov dword [esp + 0x34], 0
xor ecx, ecx
mov dword [esp + 0x28], ecx
test esi, esi
jle 0x1005d4dd
cmp esi, 8
mov eax, esi
mov edx, 8
cmovl eax, edx
test eax, eax
jle 0x1005d4dd
mov ecx, dword [0x10159260]
test ecx, ecx
je 0x1005d4cb
inc dword [ecx + 0x370]
shl eax, 4
push eax
call fcn.10105fb5
add esp, 4
mov dword [esp + 0x28], eax
mov ecx, eax
shl esi, 4
push esi
push 0
push ecx
call fcn.101010f0
xor eax, eax
add esp, 0xc
mov dword [esp + 0x2c], eax
mov eax, dword [0x10159260]
test eax, eax
je 0x1005d501
inc dword [eax + 0x370]
push 0x40000
call fcn.10105fb5
mov ecx, dword [0x10159260]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x1005d520
inc dword [ecx + 0x370]
push 0x20
call fcn.10105fb5
movss xmm0, dword [0x10150be4]
xor ecx, ecx
mov dword [esp + 0x34], eax
xor edi, edi
mov dword [esp + 0xb0], eax
add esp, 4
mov dword [eax], esi
mov eax, 1
mov dword [esp + 0x54], eax
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xa8], 8
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edi
test eax, eax
jle 0x1005d8cc
mov esi, dword [esp + 0x38]
xor edx, edx
add esi, 0x48
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], esi
nop dword [eax + eax]
mov ecx, dword [eax + 0x54]
add ecx, edx
mov edx, dword [esi - 0x10]
test edx, edx
je 0x1005d89f
mov eax, edi
add edi, edx
shl eax, 4
add eax, dword [esp + 0x28]
mov dword [esi - 0x20], eax
movss xmm1, dword [ecx + 0x44]
ucomiss xmm1, xmm0
mov dword [esp + 0x44], edi
movss dword [esp + 0x1c], xmm1
lahf
test ah, 0x44
jnp 0x1005d618
mov byte [esp + 0x17], 1
xor edi, edi
nop dword [eax]
movd xmm0, edi
mov eax, edi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101516d0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.101258f0
movss xmm1, dword [esp + 0x1c]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [esp + edi + 0xe0], dl
inc edi
cmp edi, 0x100
jb 0x1005d5d0
jmp 0x1005d61d
mov byte [esp + 0x17], 0
cmp dword [esi], 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], 0
mov eax, dword [eax + 0xc]
mov dword [esp + 0x60], eax
jle 0x1005d89b
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], eax
mov edi, dword [esi + 8]
add edi, eax
mov eax, dword [esi - 0x30]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1005d87c
mov ecx, dword [eax + 0x5c]
test ecx, ecx
je 0x1005d87c
mov eax, dword [ecx + 0xc]
mov edx, dword [edi + 0x18]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx + 0x10]
jae 0x1005d87c
test eax, eax
je 0x1005d87c
push dword [esi - 0x28]
mov ecx, dword [esi - 0x30]
mov edx, eax
call fcn.1000ae50
test eax, eax
jne 0x1005d87c
test byte [esi - 0x2c], 0x20
mov eax, dword [esi - 0x30]
mov ecx, dword [eax + 0x54]
mov dword [esp + 0x20], ecx
je 0x1005d6b7
call fcn.1000efd0
mov eax, dword [esi - 0x30]
mov ecx, dword [esp + 0x20]
test byte [esi - 0x2c], 0x40
mov edx, eax
je 0x1005d6fb
test ecx, ecx
je 0x1005d6fb
cmp dword [ecx + 0x48], 0x6f75746c
jne 0x1005d6fb
add ecx, 0x6c
mov dword [esp + 0x70], 0x10000
lea edx, [esp + 0x70]
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0x366a
mov dword [esp + 0x7c], 0x10000
call fcn.1000d380
mov edx, dword [esi - 0x30]
mov eax, dword [esp + 0x20]
add eax, 0x18
je 0x1005d87c
mov ecx, dword [edx + 0x54]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x1005d78d
mov eax, dword [ecx + 4]
test eax, eax
je 0x1005d78d
mov eax, dword [eax + 0x60]
mov edx, ecx
push dword [esi - 0x24]
mov ecx, dword [eax + 4]
call fcn.1000c750
test eax, eax
jne 0x1005d78d
mov eax, dword [esi - 0x30]
mov ecx, dword [eax + 0x54]
mov eax, dword [ecx + 0x50]
add ecx, 0x4c
mov dword [edi], eax
mov dword [esp + 0x20], ecx
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov eax, dword [esi - 0x30]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x64]
mov dword [edi + 8], eax
mov eax, dword [esi - 0x30]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x68]
neg eax
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x40]
add eax, 0x3f
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x10], xmm0
cmp byte [ecx + 0x12], 7
sete al
mov byte [edi + 0x14], al
jmp 0x1005d795
mov dword [esp + 0x20], 0
mov eax, dword [edi + 4]
imul eax, dword [edi]
mov edx, dword [esp + 0x2c]
shl eax, 2
mov dword [esp + 0x48], eax
add eax, edx
cmp eax, 0x40000
jle 0x1005d802
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [0x10159260]
test eax, eax
je 0x1005d7c4
inc dword [eax + 0x370]
push 0x40000
call fcn.10105fb5
add esp, 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xa4]
push eax
call fcn.100529d0
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x54], ecx
jmp 0x1005d80a
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x54]
mov ecx, dword [eax + ecx*4 - 4]
lea eax, [esp + 0xe0]
add ecx, edx
add edx, dword [esp + 0x48]
mov dword [esp + 0x2c], edx
xor edx, edx
cmp byte [esp + 0x17], dl
mov dword [edi + 0x1c], ecx
cmove eax, edx
push eax
push dword [edi]
push ecx
push dword [esp + 0x2c]
call fcn.1005c720
mov eax, dword [esp + 0x60]
movzx ecx, word [edi]
movzx edx, ax
mov eax, dword [esi - 0x20]
add cx, dx
mov esi, dword [esp + 0x24]
mov word [esi + eax + 4], cx
mov esi, dword [esp + 0x5c]
movzx ecx, word [edi + 4]
add cx, dx
mov edx, dword [esp + 0x24]
mov eax, dword [esi - 0x20]
mov word [edx + eax + 6], cx
mov eax, dword [esi - 0x20]
movzx ecx, word [edx + eax + 6]
movzx eax, word [edx + eax + 4]
imul ecx, eax
add dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x50]
add dword [esp + 0x18], 0x20
inc eax
add dword [esp + 0x24], 0x10
cmp eax, dword [esi]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x18]
jl 0x1005d647
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
add esi, 0x54
movss xmm0, dword [0x10150be4]
add edx, 0x78
sub dword [esp + 0x40], 1
mov edi, dword [esp + 0x44]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], edx
jne 0x1005d590
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x10]
mov esi, dword [edi + 8]
mov dword [edi + 0x20], 0
test esi, esi
jg 0x1005d929
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
sqrtss xmm0, xmm0
cvttss2si eax, xmm0
inc eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x10150d58]
jb 0x1005d905
mov esi, 0x1000
jmp 0x1005d929
comiss xmm0, dword [0x10150d54]
jb 0x1005d915
mov esi, 0x800
jmp 0x1005d929
comiss xmm0, dword [0x10150d44]
mov esi, 0x200
mov eax, 0x400
cmovae esi, eax
mov dword [edi + 0x1c], esi
xor ecx, ecx
sub esi, dword [edi + 0xc]
mov dword [esp + 0x1c], ecx
test esi, esi
jle 0x1005d96c
cmp esi, 8
mov eax, esi
mov edx, 8
cmovl eax, edx
test eax, eax
jle 0x1005d96c
mov ecx, dword [0x10159260]
test ecx, ecx
je 0x1005d95a
inc dword [ecx + 0x370]
shl eax, 3
push eax
call fcn.10105fb5
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, eax
mov edx, dword [edi + 0x1c]
push esi
push ecx
push 0x8000
lea ecx, [esp + 0xbc]
call fcn.1005cc00
mov edi, dword [edi + 0x40]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], edi
test edi, edi
jle 0x1005d9c3
cmp edi, 8
mov ecx, edi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x1005d9c3
mov eax, dword [0x10159260]
test eax, eax
je 0x1005d9b3
inc dword [eax + 0x370]
shl ecx, 4
push ecx
call fcn.10105fb5
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, edi
shl ecx, 4
push ecx
push 0
push eax
call fcn.101010f0
mov eax, dword [esp + 0x1c]
xor esi, esi
add esp, 0xc
cmp dword [eax + 0x40], esi
jle 0x1005da18
mov edx, dword [esp + 0x18]
xor ecx, ecx
add edx, 6
mov edi, eax
nop word [eax + eax]
mov eax, dword [edi + 0x48]
lea ecx, [ecx + 0x1c]
inc esi
lea edx, [edx + 0x10]
movzx eax, word [ecx + eax - 0x1c]
mov word [edx - 0x12], ax
mov eax, dword [edi + 0x48]
movzx eax, word [ecx + eax - 0x1a]
mov word [edx - 0x10], ax
cmp esi, dword [edi + 0x40]
jl 0x1005d9f0
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xb0]
push edi
call fcn.10054b50
test edi, edi
jle 0x1005da7d
mov edx, dword [esp + 0x18]
xor esi, esi
add edx, 0xa
cmp dword [edx + 2], 0
je 0x1005da72
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x48]
movzx eax, word [edx - 2]
mov word [esi + ecx + 4], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x48]
movzx eax, word [edx]
mov word [esi + ecx + 6], ax
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x20], ecx
cmovge ecx, dword [eax + 0x20]
mov dword [eax + 0x20], ecx
add esi, 0x1c
add edx, 0x10
sub edi, 1
jne 0x1005da36
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1005da9e
mov ecx, dword [0x10159260]
test ecx, ecx
je 0x1005da95
dec dword [ecx + 0x370]
push eax
call fcn.10105fcb
add esp, 4
mov edi, dword [esp + 0x4c]
test edi, edi
jle 0x1005db0a
mov esi, dword [esp + 0x38]
add esi, 0x38
mov dword [esp + 0x44], edi
mov eax, dword [esi]
test eax, eax
je 0x1005dafc
mov edx, dword [esi - 0x10]
lea ecx, [esp + 0xb0]
push eax
call fcn.10054b50
xor edi, edi
cmp dword [esi], edi
jle 0x1005dafc
xor edx, edx
nop
mov eax, dword [esi - 0x10]
cmp dword [edx + eax + 0xc], 0
je 0x1005daf4
movzx ecx, word [edx + eax + 0xa]
movzx eax, word [edx + eax + 6]
add ecx, eax
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x20], ecx
cmovge ecx, dword [eax + 0x20]
mov dword [eax + 0x20], ecx
inc edi
add edx, 0x10
cmp edi, dword [esi]
jl 0x1005dad0
add esi, 0x54
sub dword [esp + 0x44], 1
jne 0x1005dab1
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x10]
test byte [esi], 1
mov eax, dword [esi + 0x20]
jne 0x1005db3b
lea ecx, [eax - 1]
mov eax, ecx
sar eax, 1
or ecx, eax
mov eax, ecx
sar eax, 2
or ecx, eax
mov eax, ecx
sar eax, 4
or ecx, eax
mov eax, ecx
sar eax, 8
or ecx, eax
mov eax, ecx
sar eax, 0x10
or eax, ecx
mov ecx, dword [esi + 0x1c]
inc eax
movss xmm1, dword [0x10150be4]
movaps xmm2, xmm1
mov dword [esi + 0x20], eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
imul ecx, eax
cmp byte [esp + 0xf], 0
divss xmm2, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [0x10159260]
movss dword [esi + 0x24], xmm2
divss xmm1, xmm0
movss dword [esi + 0x28], xmm1
je 0x1005db9e
shl ecx, 2
test eax, eax
je 0x1005db89
inc dword [eax + 0x370]
push ecx
call fcn.10105fb5
mov ecx, dword [esi + 0x1c]
imul ecx, dword [esi + 0x20]
mov dword [esi + 0x18], eax
shl ecx, 2
jmp 0x1005dbb8
test eax, eax
je 0x1005dba8
inc dword [eax + 0x370]
push ecx
call fcn.10105fb5
mov ecx, dword [esi + 0x1c]
imul ecx, dword [esi + 0x20]
mov dword [esi + 0x14], eax
add esp, 4
push ecx
push 0
push eax
call fcn.101010f0
xor al, al
add esp, 0xc
mov byte [esp + 0x17], al
test edi, edi
jle 0x1005dfa5
mov eax, dword [esp + 0x38]
xor edx, edx
add eax, 8
mov dword [esp + 0x60], edx
mov dword [esp + 0x20], eax
mov ecx, edi
mov dword [esp + 0x48], edi
nop dword [eax]
cmp dword [eax + 0x30], 0
je 0x1005df86
mov ecx, dword [esi + 0x54]
movss xmm0, dword [eax - 4]
add ecx, edx
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [eax]
mov dword [esp + 0x94], ecx
cmp byte [ecx + 0x3c], 0
mov edi, dword [ecx + 0x74]
mov dword [esp + 0x98], edi
movss dword [esp + 0x68], xmm0
jne 0x1005dc65
mov ecx, edi
call fcn.1005a3a0
mov ecx, dword [esp + 0x94]
movss xmm0, dword [esp + 0x6c]
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x10], eax
xor eax, eax
movss dword [edi + 0x44], xmm0
movss xmm0, dword [esp + 0x68]
mov word [edi + 0x38], ax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x34], ecx
mov dword [edi + 0x30], eax
movss dword [edi + 0x48], xmm0
movss xmm0, dword [edi + 0x44]
addss xmm0, dword [0x10150b98]
mov esi, dword [esp + 0x10]
inc word [edi + 0x38]
movss xmm1, dword [ecx + 0x28]
movss dword [esp + 0x68], xmm1
cvttss2si eax, xmm0
mov dword [esp + 0x6c], 0
movd xmm0, eax
mov eax, dword [esi + 0xc]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x30], 0
addss xmm0, dword [ecx + 0x2c]
movss dword [esp + 0x9c], xmm0
jle 0x1005df77
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x5c], edx
nop word [eax + eax]
mov edi, dword [eax + 0x48]
mov eax, dword [eax + 0x20]
add edi, edx
add eax, ecx
cmp word [eax + 4], 0
jne 0x1005dcec
cmp word [eax + 6], 0
je 0x1005df53
movzx ecx, word [eax + 8]
add ecx, dword [esp + 0xa0]
movzx eax, word [eax + 0xa]
add eax, dword [esp + 0xa0]
mov edx, dword [edi]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x1c]
mov esi, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x44], eax
imul eax, dword [esp + 0x58]
mov dword [esp + 0x18], esi
test ecx, ecx
je 0x1005dda5
add eax, ecx
mov dword [esp + 0x40], 0
add eax, dword [esp + 0x2c]
mov ecx, dword [edi + 4]
mov dword [esp + 0x3c], eax
test ecx, ecx
jle 0x1005de3c
lea ecx, [edx*4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x24]
xor ecx, ecx
cmp edx, ecx
jle 0x1005dd7f
add esi, 3
mov edx, dword [esp + 0x3c]
lea esi, [esi + 4]
mov al, byte [esi - 4]
mov byte [ecx + edx], al
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jl 0x1005dd63
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
inc dword [esp + 0x40]
add eax, dword [esp + 0x44]
add esi, dword [esp + 0x64]
mov ecx, dword [edi + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], edx
cmp dword [esp + 0x40], ecx
jl 0x1005dd56
jmp 0x1005de3c
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
add ecx, eax
mov dword [esp + 0x3c], 0
mov eax, dword [esi + 0x18]
lea eax, [eax + ecx*4]
mov ecx, dword [edi + 4]
mov dword [esp + 0x40], eax
test ecx, ecx
jle 0x1005de40
mov eax, dword [esp + 0x44]
mov ecx, edx
shl eax, 2
mov dword [esp + 0x44], eax
lea eax, [edx*4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
jmp 0x1005ddea
mov ecx, dword [esp + 0x64]
xor esi, esi
mov edx, ecx
test ecx, ecx
jle 0x1005de18
mov ecx, dword [esp + 0x40]
sub eax, ecx
mov dword [esp + 0x64], eax
nop dword [eax]
mov eax, dword [eax + ecx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
inc esi
mov edx, dword [edi]
mov eax, dword [esp + 0x64]
cmp esi, edx
jl 0x1005de00
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
inc esi
add dword [esp + 0x40], ecx
add eax, dword [esp + 0x24]
mov ecx, dword [edi + 4]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x64], edx
cmp esi, ecx
jl 0x1005dde6
mov esi, dword [esp + 0x10]
movd xmm4, dword [edi + 0xc]
sub esp, 0x20
movd xmm3, dword [edi + 8]
cvtdq2ps xmm4, xmm4
mov eax, dword [esp + 0x78]
add eax, ecx
cvtdq2ps xmm3, xmm3
addss xmm4, xmm0
movd xmm0, dword [esi + 0x20]
cvtdq2ps xmm0, xmm0
addss xmm3, xmm1
movss xmm1, dword [0x10150be4]
movaps xmm2, xmm1
divss xmm2, xmm0
movd xmm0, dword [esi + 0x1c]
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [edi + 0x10]
movss dword [esp + 0x1c], xmm0
movd xmm0, eax
mov eax, dword [esp + 0x4c]
cvtdq2ps xmm0, xmm0
add eax, edx
mulss xmm0, xmm2
movss dword [esp + 0x18], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movzx eax, word [edi + 0x18]
mulss xmm0, xmm1
movss dword [esp + 0x14], xmm0
movd xmm0, dword [esp + 0x78]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [esp + 0x10], xmm0
movd xmm0, dword [esp + 0x4c]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0xc], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov ecx, dword [esp + 0xb8]
addss xmm0, xmm4
movss dword [esp + 8], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
addss xmm0, xmm3
movss dword [esp + 4], xmm0
movss dword [esp], xmm4
push eax
push dword [esp + 0xb8]
call fcn.1005a860
cmp byte [edi + 0x14], 0
mov ecx, dword [esp + 0x98]
movss xmm0, dword [esp + 0x9c]
movss xmm1, dword [esp + 0x68]
mov edx, dword [esp + 0x5c]
mov eax, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x28]
lea eax, [eax + eax*4]
je 0x1005df4f
or dword [ecx + eax*8 - 0x28], 1
mov byte [esp + 0x17], 1
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x6c]
add edx, 0x20
mov eax, dword [esp + 0x20]
inc edi
add ecx, 0x10
mov dword [esp + 0x6c], edi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x50], ecx
cmp edi, dword [eax + 0x30]
jl 0x1005dcd0
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x20], 0
add eax, 0x54
add edx, 0x78
sub ecx, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x48], ecx
jne 0x1005dbf0
mov al, byte [esp + 0x17]
mov edi, dword [esp + 0x30]
mov byte [esi + 0x11], al
xor esi, esi
cmp dword [esp + 0x54], esi
jle 0x1005dfda
mov ecx, dword [edi + esi*4]
test ecx, ecx
je 0x1005dfca
mov eax, dword [0x10159260]
test eax, eax
je 0x1005dfca
dec dword [eax + 0x370]
push ecx
call fcn.10105fcb
inc esi
add esp, 4
cmp esi, dword [esp + 0x54]
jl 0x1005dfb4
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x1005e049
mov esi, dword [esp + 0x38]
add esi, 0x18
nop dword [eax]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1005e00f
mov eax, dword [0x10159260]
test eax, eax
je 0x1005e006
dec dword [eax + 0x370]
push ecx
call fcn.10105fcb
add esp, 4
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x1005e02e
mov eax, dword [0x10159260]
test eax, eax
je 0x1005e025
dec dword [eax + 0x370]
push ecx
call fcn.10105fcb
add esp, 4
mov ecx, dword [esi]
test ecx, ecx
je 0x1005e03f
call fcn.1000c020
mov dword [esi], 0
add esi, 0x54
sub dword [esp + 0x4c], 1
jne 0x1005dff0
mov ecx, dword [esp + 0x10]
call fcn.10059e30
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0xf], 1
test ecx, ecx
je 0x1005e077
mov eax, dword [0x10159260]
test eax, eax
je 0x1005e06e
dec dword [eax + 0x370]
push ecx
call fcn.10105fcb
add esp, 4
test edi, edi
je 0x1005e093
mov eax, dword [0x10159260]
test eax, eax
je 0x1005e08a
dec dword [eax + 0x370]
push edi
call fcn.10105fcb
add esp, 4
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x1005e0b3
mov eax, dword [0x10159260]
test eax, eax
je 0x1005e0aa
dec dword [eax + 0x370]
push ecx
call fcn.10105fcb
add esp, 4
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x1005e0d3
mov eax, dword [0x10159260]
test eax, eax
je 0x1005e0ca
dec dword [eax + 0x370]
push ecx
call fcn.10105fcb
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1005e0f4
mov ecx, dword [0x10159260]
test ecx, ecx
je 0x1005e0eb
dec dword [ecx + 0x370]
push eax
call fcn.10105fcb
add esp, 4
mov al, byte [esp + 0xf]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4