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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1e8
push esi
push edi
mov edi, edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], edi
cmp dword [edi + 0x460], 0
jge 0x1005a418
test byte [edi], 2
lea eax, [esp + 0x80]
mov dword [esp + 0x84], 0xffffffff
lea ecx, [edi + 0x40]
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
push eax
mov dword [esp + 0x84], 0x1b00d9
je 0x1005a409
mov dword [esp + 0x84], 0x20002
call fcn.10059640
mov eax, dword [edi + 0x40]
dec eax
mov dword [edi + 0x460], eax
cmp dword [edi + 0x464], 0
jge 0x1005a48d
test byte [edi], 4
jne 0x1005a48d
lea eax, [esp + 0x80]
mov dword [esp + 0x84], 0xffffffff
push eax
lea ecx, [edi + 0x40]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x84], 0x400041
call fcn.10059640
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.10056440
mov esi, dword [esp + 0x20]
xor edi, edi
mov byte [esp + 0x17], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], edi
mov ecx, dword [esi + 0x4c]
lea edx, [edi + 8]
mov dword [esp + 0x54], ecx
test ecx, ecx
jle 0x1005a51c
cmp ecx, edx
mov eax, ecx
cmovl eax, edx
test eax, eax
jle 0x1005a51c
mov ecx, dword [0x101541b4]
test ecx, ecx
je 0x1005a505
inc dword [ecx + 0x370]
mov edx, dword [0x101541b0]
imul ecx, eax, 0x54
call fcn.1003cd80
mov dword [esp + 0x48], eax
mov edx, 8
mov eax, dword [esi + 0x34]
mov dword [esp + 0x40], eax
test eax, eax
jle 0x1005a559
cmp eax, 8
mov ecx, eax
cmovl ecx, edx
test ecx, ecx
jle 0x1005a559
mov eax, dword [0x101541b4]
test eax, eax
je 0x1005a542
inc dword [eax + 0x370]
mov edx, dword [0x101541b0]
lea ecx, [ecx + ecx*2]
shl ecx, 3
call fcn.1003cd80
mov edi, eax
mov dword [esp + 0x44], eax
imul ecx, dword [esp + 0x54], 0x54
push ecx
push 0
push dword [esp + 0x50]
call fcn.100fde00
mov eax, dword [esp + 0x4c]
add esp, 0xc
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push edi
call fcn.100fde00
add esp, 0xc
mov dword [esp + 0x24], 0
cmp dword [esi + 0x4c], 0
jle 0x1005a68e
mov esi, dword [esp + 0x48]
xor eax, eax
mov dword [esp + 0x2c], eax
add esi, 0x34
mov ecx, dword [esp + 0x20]
xor edx, edx
mov edi, dword [ecx + 0x54]
add edi, eax
mov dword [esi - 4], 0xffffffff
cmp dword [ecx + 0x34], edx
jle 0x1005a6da
or eax, 0xffffffff
cmp eax, 0xffffffff
jne 0x1005a5ed
mov ecx, dword [ecx + 0x3c]
mov eax, dword [edi + 0x74]
cmp eax, dword [ecx + edx*4]
jne 0x1005a5d7
mov dword [esi - 4], edx
mov eax, edx
jmp 0x1005a5da
mov eax, dword [esi - 4]
mov ecx, dword [esp + 0x20]
inc edx
cmp edx, dword [ecx + 0x34]
jl 0x1005a5c0
cmp eax, 0xffffffff
je 0x1005a6da
push dword [ebp + 8]
lea ecx, [esi - 0x34]
push edi
push dword [esp + 0x44]
call fcn.10059940
test al, al
je 0x1005a6da
mov eax, dword [edi + 0x40]
mov edx, 0x1013cb34
shr eax, 8
and al, 1
or byte [esp + 0x17], al
mov eax, dword [esi - 4]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x30]
test eax, eax
mov dword [esp + 0x28], ecx
cmovne edx, eax
mov dword [esi - 8], edx
cmp word [edx], 0
je 0x1005a650
movzx eax, word [edx + 2]
test ax, ax
je 0x1005a64c
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x1005a631
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
inc dword [edi + ecx*8]
mov ecx, dword [esi]
cmp dword [edi + edx*8 + 4], ecx
cmovge ecx, dword [edi + edx*8 + 4]
add eax, 0x78
mov dword [edi + edx*8 + 4], ecx
add esi, 0x54
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
cmp ecx, dword [edx + 0x4c]
jl 0x1005a5a2
mov eax, dword [esp + 0x54]
xor esi, esi
mov dword [esp + 0x34], esi
test eax, eax
jle 0x1005aa3f
mov esi, dword [esp + 0x48]
add esi, 0x44
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], 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 0x1005a6f9
test eax, eax
je 0x1005a6e4
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [esi - 4]
jmp 0x1005a6e9
mov byte [esp + 0x17], 0
jmp 0x1005b666
mov ecx, 8
cmp ecx, edi
mov eax, edi
cmovg eax, ecx
lea ecx, [esi - 8]
push eax
call fcn.1004f9f0
lea eax, [edi*4]
mov dword [esi - 8], edi
push eax
push 0
push dword [esi]
call fcn.100fde00
mov edx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x44]
lea ecx, [edx*8 + 0xc]
add ecx, eax
mov dword [esp + 0x28], ecx
cmp dword [ecx], 0
jne 0x1005a785
mov edi, dword [eax + edx*8 + 4]
mov eax, dword [ecx + 4]
add edi, 0x20
sar edi, 5
mov dword [esp + 0x3c], eax
cmp edi, eax
jle 0x1005a76a
test eax, eax
je 0x1005a750
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [esp + 0x3c]
jmp 0x1005a755
mov ecx, 8
cmp ecx, edi
mov eax, edi
cmovg eax, ecx
mov ecx, dword [esp + 0x28]
push eax
call fcn.1004f9f0
mov ecx, dword [esp + 0x28]
lea eax, [edi*4]
mov dword [ecx], edi
push eax
push 0
push dword [ecx + 8]
call fcn.100fde00
mov edx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esi - 0x18]
mov dword [esp + 0x38], eax
movzx ecx, word [eax]
test cx, cx
je 0x1005a876
nop dword [eax + eax]
movzx eax, word [eax + 2]
test ax, ax
je 0x1005a872
movzx edi, cx
cmp edi, eax
ja 0x1005a857
mov eax, dword [esp + 0x44]
mov esi, edi
mov ecx, edi
sar esi, 5
and ecx, 0x1f
mov dword [esp + 0x30], ecx
mov edx, dword [eax + edx*8 + 0x14]
mov eax, 1
shl eax, cl
test dword [edx + esi*4], eax
jne 0x1005a842
mov eax, dword [esp + 0x4c]
mov eax, dword [eax - 0x2c]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x1005a842
mov ecx, dword [eax + 0x5c]
test ecx, ecx
je 0x1005a842
mov eax, dword [ecx + 0xc]
mov edx, edi
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [esp + 0x3c]
cmp eax, dword [ecx + 0x10]
jae 0x1005a842
test eax, eax
je 0x1005a842
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
inc dword [eax - 0xc]
inc dword [edx + ecx*8 + 8]
mov ecx, dword [eax]
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + esi*4]
bts eax, edx
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
mov ecx, dword [eax + ecx*8 + 0x14]
mov eax, dword [ecx + esi*4]
bts eax, edx
inc dword [esp + 0x34]
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x38]
inc edi
mov edx, dword [esp + 0x18]
movzx eax, word [eax + 2]
cmp edi, eax
jle 0x1005a7b8
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x38], eax
movzx ecx, word [eax]
test cx, cx
jne 0x1005a7a0
mov esi, dword [esp + 0x4c]
add esi, 0x54
sub dword [esp + 0x24], 1
mov dword [esp + 0x4c], esi
jne 0x1005a6b0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x54]
add edx, 0x50
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
nop dword [eax + eax]
mov esi, dword [edx - 0x18]
cmp esi, dword [edx - 4]
jle 0x1005a917
mov eax, dword [0x101541b4]
test eax, eax
je 0x1005a8b7
inc dword [eax + 0x370]
mov edx, dword [0x101541b0]
mov ecx, esi
shl ecx, 5
call fcn.1003cd80
mov edx, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov edi, dword [edx]
test edi, edi
je 0x1005a912
mov ecx, dword [edx - 8]
shl ecx, 5
push ecx
push edi
push eax
call fcn.100fe460
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [edx]
test ecx, ecx
je 0x1005a8ff
mov eax, dword [0x101541b4]
test eax, eax
je 0x1005a8ff
dec dword [eax + 0x370]
mov edx, dword [0x101541b0]
call fcn.1003cd90
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov dword [edx], eax
mov dword [edx - 4], esi
mov ecx, dword [edx - 0xc]
mov esi, ecx
mov eax, dword [edx - 0x14]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x68], eax
cmp ecx, eax
jae 0x1005a9ef
mov eax, dword [esi]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x1005a9de
xor edi, edi
mov eax, 1
mov ecx, edi
shl eax, cl
test dword [esp + 0x3c], eax
je 0x1005a9d4
mov ecx, dword [edx - 8]
mov eax, esi
sub eax, dword [esp + 0x30]
lea esi, [edx - 8]
shl eax, 3
xorps xmm0, xmm0
and eax, 0xffffffe0
movaps xmmword [esp + 0x90], xmm0
add eax, edi
movzx eax, ax
mov dword [esp + 0x98], eax
mov eax, dword [edx - 4]
cmp ecx, eax
jne 0x1005a9b7
inc ecx
test eax, eax
je 0x1005a99c
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add eax, dword [edx - 4]
jmp 0x1005a9a1
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1005b830
mov ecx, dword [esi]
xorps xmm0, xmm0
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 8]
shl ecx, 5
movups xmmword [eax + ecx], xmm0
movups xmm0, xmmword [esp + 0x90]
movups xmmword [eax + ecx + 0x10], xmm0
inc dword [esi]
mov esi, dword [esp + 0x28]
inc edi
cmp edi, 0x20
jb 0x1005a946
add esi, 4
mov dword [esp + 0x28], esi
cmp esi, dword [esp + 0x68]
jb 0x1005a936
mov ecx, dword [edx - 0xc]
test ecx, ecx
je 0x1005aa29
mov eax, dword [0x101541b4]
mov dword [edx - 0x10], 0
mov dword [edx - 0x14], 0
test eax, eax
je 0x1005aa13
dec dword [eax + 0x370]
mov edx, dword [0x101541b0]
call fcn.1003cd90
mov edx, dword [esp + 0x18]
mov dword [edx - 0xc], 0
add edx, 0x54
sub dword [esp + 0x24], 1
mov dword [esp + 0x18], edx
jne 0x1005a8a0
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x40], 0
jle 0x1005aa95
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
add edi, 0x14
mov ecx, dword [edi]
test ecx, ecx
je 0x1005aa89
mov eax, dword [0x101541b4]
mov dword [edi - 4], 0
mov dword [edi - 8], 0
test eax, eax
je 0x1005aa74
dec dword [eax + 0x370]
mov edx, dword [0x101541b0]
call fcn.1003cd90
mov eax, dword [esp + 0x40]
mov dword [edi], 0
add edi, 0x18
sub eax, 1
mov dword [esp + 0x40], eax
jne 0x1005aa51
mov edi, dword [esp + 0x44]
test edi, edi
je 0x1005aac1
mov eax, dword [0x101541b4]
test eax, eax
je 0x1005aaac
dec dword [eax + 0x370]
mov edx, dword [0x101541b0]
mov ecx, edi
call fcn.1003cd90
mov dword [esp + 0x44], 0
push esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
call fcn.100594e0
mov eax, dword [esp + 0x5c]
shl eax, 4
push eax
mov eax, dword [esp + 0x68]
push 0
push eax
mov dword [esp + 0x48], eax
call fcn.100fde00
xor eax, eax
add esp, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
mov eax, dword [0x101541b4]
test eax, eax
je 0x1005ab1f
inc dword [eax + 0x370]
mov edx, dword [0x101541b0]
mov ecx, 0x40000
call fcn.1003cd80
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x5c]
lea eax, [esp + 0x30]
push eax
call fcn.1004fa70
mov ecx, dword [esp + 0x54]
xor eax, eax
movss xmm0, dword [0x1014b1b4]
xor esi, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x50], esi
test ecx, ecx
jle 0x1005ae64
mov edi, dword [esp + 0x48]
xor edx, edx
mov eax, dword [esp + 0x5c]
add edi, 0x18
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x4c], ecx
nop word [eax + eax]
mov ecx, dword [eax + 0x54]
add ecx, edx
mov edx, dword [edi + 0x20]
test edx, edx
je 0x1005ae35
mov eax, esi
add esi, edx
shl eax, 4
add eax, dword [esp + 0x3c]
mov dword [edi + 0x10], eax
movss xmm1, dword [ecx + 0x44]
ucomiss xmm1, xmm0
mov dword [esp + 0x50], esi
movss dword [esp + 0x30], xmm1
lahf
test ah, 0x44
jnp 0x1005ac18
mov byte [esp + 0x1f], 1
xor esi, esi
nop dword [eax]
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1014bca0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.10120ad0
movss xmm1, dword [esp + 0x30]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [esp + esi + 0xf0], dl
inc esi
cmp esi, 0x100
jb 0x1005abd0
jmp 0x1005ac1d
mov byte [esp + 0x1f], 0
cmp dword [edi + 0x30], 0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], 0
mov eax, dword [eax + 0xc]
mov dword [esp + 0x78], eax
jle 0x1005ae31
lea eax, [edi - 0x18]
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], eax
xor esi, esi
nop dword [eax + eax]
mov edi, dword [edi + 0x38]
mov ecx, eax
mov dword [esp + 0x70], edi
push dword [esi + edi + 0x18]
call fcn.10059b40
test eax, eax
je 0x1005ae0a
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x54]
mov dword [esp + 0x30], edx
test edx, edx
je 0x1005ad0e
mov eax, dword [edx + 4]
test eax, eax
je 0x1005ad0e
mov eax, dword [eax + 0x60]
push dword [ecx + 0xc]
mov ecx, dword [eax + 4]
call fcn.1000beb0
test eax, eax
jne 0x1005ad0e
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
mov eax, dword [eax + 0x54]
add eax, 0x4c
mov dword [esp + 0x58], eax
mov ecx, dword [eax + 4]
mov dword [esi + edi], ecx
mov eax, dword [eax]
mov dword [esi + edi + 4], eax
mov dword [esp + 0x68], eax
mov eax, dword [edx]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x64]
mov dword [esi + edi + 8], eax
mov eax, dword [edx]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x68]
neg eax
mov dword [esi + edi + 0xc], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x40]
add eax, 0x3f
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
movd xmm0, eax
mov eax, dword [esp + 0x58]
cvtdq2ps xmm0, xmm0
movss dword [esi + edi + 0x10], xmm0
cmp byte [eax + 0x12], 7
sete al
mov byte [esi + edi + 0x14], al
mov eax, dword [esp + 0x68]
jmp 0x1005ad1d
mov eax, dword [esi + edi + 4]
mov ecx, dword [esi + edi]
mov dword [esp + 0x58], 0
mov edx, dword [esp + 0x18]
imul ecx, eax
shl ecx, 2
mov dword [esp + 0x68], ecx
lea eax, [ecx + edx]
cmp eax, 0x40000
jle 0x1005ad82
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [0x101541b4]
test eax, eax
je 0x1005ad4a
inc dword [eax + 0x370]
mov edx, dword [0x101541b0]
mov ecx, 0x40000
call fcn.1003cd80
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x5c]
lea eax, [esp + 0x30]
push eax
call fcn.1004fa70
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], ecx
jmp 0x1005ad8a
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
mov ecx, dword [eax + ecx*4 - 4]
lea eax, [esp + 0xf0]
add ecx, edx
add edx, dword [esp + 0x68]
mov dword [esp + 0x18], edx
xor edx, edx
cmp byte [esp + 0x1f], dl
mov dword [esi + edi + 0x1c], ecx
cmove eax, edx
push eax
push dword [esi + edi]
push ecx
push dword [esp + 0x64]
call fcn.10059d10
mov eax, dword [esp + 0x78]
movzx ecx, word [esi + edi]
mov edi, dword [esp + 0x34]
movzx edx, ax
mov eax, dword [esp + 0x28]
add cx, dx
mov eax, dword [eax + 0x28]
mov word [eax + edi + 4], cx
mov edi, dword [esp + 0x70]
movzx ecx, word [esi + edi + 4]
mov edi, dword [esp + 0x28]
add cx, dx
mov edx, dword [esp + 0x34]
mov eax, dword [edi + 0x28]
mov word [eax + edx + 6], cx
mov eax, dword [edi + 0x28]
movzx ecx, word [eax + edx + 6]
movzx eax, word [eax + edx + 4]
imul ecx, eax
add dword [esp + 0x2c], ecx
jmp 0x1005ae0e
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
add edx, 0x10
mov eax, dword [esp + 0x24]
add esi, 0x20
inc eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], eax
cmp eax, dword [edi + 0x30]
lea eax, [edi - 0x18]
jl 0x1005ac50
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x74]
add edi, 0x54
movss xmm0, dword [0x1014b1b4]
add edx, 0x78
sub dword [esp + 0x6c], 1
mov esi, dword [esp + 0x50]
mov dword [esp + 0x38], edi
mov dword [esp + 0x74], edx
jne 0x1005ab90
mov eax, dword [esp + 0x2c]
jmp 0x1005ae74
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x40], ecx
mov edi, dword [esp + 0x20]
mov esi, dword [edi + 8]
mov dword [edi + 0x20], 0
test esi, esi
jg 0x1005aed1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
sqrtss xmm0, xmm0
cvttss2si eax, xmm0
inc eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x1014b330]
jb 0x1005aead
mov esi, 0x1000
jmp 0x1005aed1
comiss xmm0, dword [0x1014b32c]
jb 0x1005aebd
mov esi, 0x800
jmp 0x1005aed1
comiss xmm0, dword [0x1014b31c]
mov esi, 0x200
mov eax, 0x400
cmovae esi, eax
mov dword [edi + 0x1c], esi
xor eax, eax
sub esi, dword [edi + 0xc]
mov dword [esp + 0x30], eax
test esi, esi
jle 0x1005af13
cmp esi, 8
mov ecx, esi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x1005af13
mov eax, dword [0x101541b4]
test eax, eax
je 0x1005af01
inc dword [eax + 0x370]
mov edx, dword [0x101541b0]
shl ecx, 3
call fcn.1003cd80
mov dword [esp + 0x30], eax
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0xc0]
push esi
push eax
push 0x8000
call fcn.1005a1f0
push dword [edi + 0x40]
lea ecx, [esp + 0x60]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
call fcn.100594e0
mov edi, dword [esp + 0x5c]
mov eax, edi
shl eax, 4
push eax
push 0
push dword [esp + 0x6c]
call fcn.100fde00
mov eax, dword [esp + 0x2c]
xor esi, esi
add esp, 0xc
cmp dword [eax + 0x40], esi
jle 0x1005afa8
mov edx, dword [esp + 0x64]
xor ecx, ecx
add edx, 6
mov edi, eax
nop dword [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 0x1005af80
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0xc0]
push edi
call fcn.10051d40
test edi, edi
jle 0x1005b012
mov edx, dword [esp + 0x64]
xor esi, esi
add edx, 0xa
cmp dword [edx + 2], 0
je 0x1005b007
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x48]
movzx eax, word [edx - 2]
mov word [esi + ecx + 4], ax
mov eax, dword [esp + 0x20]
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 + 0x20]
mov eax, dword [eax + 0x20]
cmp eax, ecx
cmovge ecx, eax
mov eax, dword [esp + 0x20]
mov dword [eax + 0x20], ecx
add esi, 0x1c
add edx, 0x10
sub edi, 1
jne 0x1005afc6
mov eax, dword [esp + 0x64]
test eax, eax
je 0x1005b037
mov ecx, dword [0x101541b4]
test ecx, ecx
je 0x1005b02a
dec dword [ecx + 0x370]
mov edx, dword [0x101541b0]
mov ecx, eax
call fcn.1003cd90
mov edi, dword [esp + 0x54]
test edi, edi
jle 0x1005b0af
mov esi, dword [esp + 0x48]
add esi, 0x38
mov dword [esp + 0x50], edi
nop word [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x1005b0a1
mov edx, dword [esi - 0x10]
lea ecx, [esp + 0xc0]
push eax
call fcn.10051d40
xor edi, edi
cmp dword [esi], edi
jle 0x1005b0a1
xor edx, edx
nop
mov eax, dword [esi - 0x10]
cmp dword [edx + eax + 0xc], 0
je 0x1005b099
movzx ecx, word [edx + eax + 0xa]
movzx eax, word [edx + eax + 6]
add ecx, eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x20]
cmp eax, ecx
cmovge ecx, eax
mov eax, dword [esp + 0x20]
mov dword [eax + 0x20], ecx
inc edi
add edx, 0x10
cmp edi, dword [esi]
jl 0x1005b070
add esi, 0x54
sub dword [esp + 0x50], 1
jne 0x1005b050
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x20]
test byte [esi], 1
mov eax, dword [esi + 0x20]
jne 0x1005b0e0
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
movss xmm1, dword [0x1014b1b4]
lea ecx, [eax + 1]
mov eax, dword [esi + 0x1c]
movaps xmm2, xmm1
mov dword [esi + 0x20], ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
imul ecx, eax
cmp byte [esp + 0x17], 0
divss xmm1, xmm0
mov eax, dword [0x101541b4]
movss dword [esi + 0x24], xmm2
movss dword [esi + 0x28], xmm1
je 0x1005b14a
shl ecx, 2
test eax, eax
je 0x1005b130
inc dword [eax + 0x370]
mov edx, dword [0x101541b0]
call fcn.1003cd80
mov ecx, dword [esi + 0x20]
imul ecx, dword [esi + 0x1c]
mov dword [esi + 0x18], eax
shl ecx, 2
jmp 0x1005b169
test eax, eax
je 0x1005b154
inc dword [eax + 0x370]
mov edx, dword [0x101541b0]
call fcn.1003cd80
mov ecx, dword [esi + 0x20]
imul ecx, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
push ecx
push 0
push eax
call fcn.100fde00
xor al, al
add esp, 0xc
mov byte [esp + 0x1f], al
test edi, edi
jle 0x1005b54b
mov eax, dword [esp + 0x48]
xor edx, edx
add eax, 8
mov dword [esp + 0x78], edx
mov dword [esp + 0x28], eax
mov ecx, edi
mov dword [esp + 0x68], edi
nop word [eax + eax]
cmp dword [eax + 0x30], 0
je 0x1005b52c
mov ecx, dword [esi + 0x54]
movss xmm0, dword [eax - 4]
add ecx, edx
movss dword [esp + 0x70], xmm0
movss xmm0, dword [eax]
mov dword [esp + 0xb0], ecx
cmp byte [ecx + 0x3c], 0
mov edi, dword [ecx + 0x74]
mov dword [esp + 0xbc], edi
movss dword [esp + 0x7c], xmm0
jne 0x1005b20f
mov ecx, edi
call fcn.100576e0
mov ecx, dword [esp + 0xb0]
movss xmm0, dword [esp + 0x70]
movss xmm1, dword [esp + 0x7c]
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x10], eax
xor eax, eax
mov dword [edi + 0x34], ecx
mov dword [edi + 0x30], esi
movss dword [edi + 0x44], xmm0
movss dword [edi + 0x48], xmm1
jmp 0x1005b218
movzx eax, word [edi + 0x38]
movss xmm0, dword [edi + 0x44]
addss xmm0, dword [0x1014b168]
inc eax
mov dword [esp + 0x70], 0
mov word [edi + 0x38], ax
movss xmm1, dword [ecx + 0x28]
movss dword [esp + 0x7c], xmm1
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, dword [esi + 0xc]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x30], 0
addss xmm0, dword [ecx + 0x2c]
movss dword [esp + 0xb4], xmm0
jle 0x1005b51d
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], edx
mov edi, dword [eax + 0x48]
mov eax, dword [eax + 0x20]
add edi, edx
add eax, ecx
cmp word [eax + 4], 0
jne 0x1005b291
cmp word [eax + 6], 0
je 0x1005b4f9
movzx ecx, word [eax + 8]
add ecx, dword [esp + 0xb8]
movzx eax, word [eax + 0xa]
add eax, dword [esp + 0xb8]
mov edx, dword [edi]
mov dword [esp + 0x74], ecx
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x6c], ecx
imul ecx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x58], edx
add ecx, dword [esp + 0x74]
test eax, eax
je 0x1005b35d
cmp dword [edi + 4], 0
lea esi, [ecx + eax]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x50], 0
jle 0x1005b353
lea eax, [edx*4]
mov dword [esp + 0xac], eax
mov eax, edx
nop dword [eax]
xor edx, edx
mov ecx, eax
test eax, eax
jle 0x1005b328
mov esi, dword [esp + 0x18]
add esi, 3
nop
mov ecx, dword [esp + 0x2c]
lea esi, [esi + 4]
mov al, byte [esi - 4]
mov byte [edx + ecx], al
inc edx
mov ecx, dword [edi]
cmp edx, ecx
jl 0x1005b310
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0xac]
inc edx
add esi, dword [esp + 0x6c]
add dword [esp + 0x18], eax
mov eax, ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x2c], esi
cmp edx, dword [edi + 4]
jl 0x1005b300
mov esi, dword [edi + 4]
jmp 0x1005b3e1
mov esi, dword [edi + 4]
mov ecx, edx
jmp 0x1005b3e1
mov eax, dword [esi + 0x18]
mov esi, dword [edi + 4]
mov dword [esp + 0x58], 0
lea eax, [eax + ecx*4]
mov ecx, edx
mov dword [esp + 0x2c], eax
test esi, esi
jle 0x1005b3e1
mov eax, dword [esp + 0x6c]
shl eax, 2
mov dword [esp + 0x50], eax
lea eax, [edx*4]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x18]
xor esi, esi
mov ecx, edx
test edx, edx
jle 0x1005b3c2
mov edx, dword [esp + 0x2c]
sub eax, edx
mov dword [esp + 0xac], eax
mov eax, dword [eax + edx]
lea edx, [edx + 4]
mov dword [edx - 4], eax
inc esi
mov ecx, dword [edi]
mov eax, dword [esp + 0xac]
cmp esi, ecx
jl 0x1005b3a7
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x50]
inc dword [esp + 0x58]
add dword [esp + 0x2c], edx
mov edx, ecx
add eax, dword [esp + 0x6c]
mov esi, dword [edi + 4]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x58], esi
jl 0x1005b392
movd xmm4, dword [edi + 0xc]
sub esp, 0x20
mov eax, dword [esp + 0x40]
movd xmm3, dword [edi + 8]
cvtdq2ps xmm4, xmm4
mov edx, dword [esp + 0x94]
cvtdq2ps xmm3, xmm3
addss xmm4, xmm0
movd xmm0, dword [eax + 0x20]
cvtdq2ps xmm0, xmm0
addss xmm3, xmm1
movss xmm1, dword [0x1014b1b4]
movaps xmm2, xmm1
divss xmm2, xmm0
movd xmm0, dword [eax + 0x1c]
mov eax, dword [esp + 0x58]
cvtdq2ps xmm0, xmm0
add eax, esi
divss xmm1, xmm0
movss xmm0, dword [edi + 0x10]
movss dword [esp + 0x1c], xmm0
movd xmm0, eax
lea eax, [edx + ecx]
cvtdq2ps xmm0, xmm0
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 + 0x58]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [esp + 0x10], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0xc], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov esi, dword [esp + 0xdc]
addss xmm0, xmm4
movss dword [esp + 8], xmm0
movd xmm0, ecx
mov ecx, esi
cvtdq2ps xmm0, xmm0
addss xmm0, xmm3
movss dword [esp + 4], xmm0
movss dword [esp], xmm4
push eax
push dword [esp + 0xd4]
call fcn.10057ba0
cmp byte [edi + 0x14], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x28]
movss xmm0, dword [esp + 0xb4]
movss xmm1, dword [esp + 0x7c]
mov esi, dword [esp + 0x20]
lea eax, [eax + eax*4]
mov edx, dword [esp + 0x34]
je 0x1005b4f5
or dword [ecx + eax*8 - 0x28], 1
mov byte [esp + 0x1f], 1
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x70]
add edx, 0x20
mov eax, dword [esp + 0x28]
inc edi
add ecx, 0x10
mov dword [esp + 0x70], edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], ecx
cmp edi, dword [eax + 0x30]
jl 0x1005b275
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x20], 0
add eax, 0x54
add edx, 0x78
sub ecx, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x68], ecx
jne 0x1005b1a0
mov al, byte [esp + 0x1f]
mov edi, dword [esp + 0x4c]
mov byte [esi + 0x11], al
xor esi, esi
cmp dword [esp + 0x40], esi
jle 0x1005b588
nop word [eax + eax]
mov ecx, dword [edi + esi*4]
test ecx, ecx
je 0x1005b576
mov eax, dword [0x101541b4]
test eax, eax
je 0x1005b576
dec dword [eax + 0x370]
mov edx, dword [0x101541b0]
call fcn.1003cd90
inc esi
cmp esi, dword [esp + 0x40]
jl 0x1005b560
mov eax, dword [esp + 0x54]
test eax, eax
jle 0x1005b5f4
mov esi, dword [esp + 0x48]
add esi, 0x18
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1005b5b8
mov eax, dword [0x101541b4]
test eax, eax
je 0x1005b5ad
dec dword [eax + 0x370]
mov edx, dword [0x101541b0]
call fcn.1003cd90
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x1005b5d9
mov eax, dword [0x101541b4]
test eax, eax
je 0x1005b5ce
dec dword [eax + 0x370]
mov edx, dword [0x101541b0]
call fcn.1003cd90
mov ecx, dword [esi]
test ecx, ecx
je 0x1005b5ea
call fcn.1000b760
mov dword [esi], 0
add esi, 0x54
sub dword [esp + 0x54], 1
jne 0x1005b597
mov ecx, dword [esp + 0x20]
call fcn.100571d0
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x17], 1
test ecx, ecx
je 0x1005b624
mov eax, dword [0x101541b4]
test eax, eax
je 0x1005b619
dec dword [eax + 0x370]
mov edx, dword [0x101541b0]
call fcn.1003cd90
test edi, edi
je 0x1005b644
mov eax, dword [0x101541b4]
test eax, eax
je 0x1005b637
dec dword [eax + 0x370]
mov edx, dword [0x101541b0]
mov ecx, edi
call fcn.1003cd90
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x1005b666
mov eax, dword [0x101541b4]
test eax, eax
je 0x1005b65b
dec dword [eax + 0x370]
mov edx, dword [0x101541b0]
call fcn.1003cd90
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1005b68b
mov ecx, dword [0x101541b4]
test ecx, ecx
je 0x1005b67e
dec dword [ecx + 0x370]
mov edx, dword [0x101541b0]
mov ecx, eax
call fcn.1003cd90
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1005b6b0
mov ecx, dword [0x101541b4]
test ecx, ecx
je 0x1005b6a3
dec dword [ecx + 0x370]
mov edx, dword [0x101541b0]
mov ecx, eax
call fcn.1003cd90
mov al, byte [esp + 0x17]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4