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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45a66c
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x1b8
push esi
mov esi, dword [ebx + 8]
push edi
cmp dword [esi + 0x58], 0
jge 0x41aa8e
test byte [esi + 4], 2
lea eax, [ebp - 0x74]
mov dword [ebp - 0x70], 0xffffffff
lea ecx, [esi + 0x40]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
push eax
mov dword [ebp - 0x74], 0x1b00d9
je 0x41aa82
mov dword [ebp - 0x74], 0x20002
call fcn.0041e9d0
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 8], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
test eax, eax
je 0x41aacf
push eax
call fcn.0040cd50
add esp, 4
mov eax, dword [esi + 0x18]
test eax, eax
je 0x41aadf
push eax
call fcn.0040cd50
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0xa8], eax
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x88], edi
mov ecx, dword [esi + 0x4c]
lea edx, [eax + 8]
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], ecx
test ecx, ecx
jle 0x41ab6c
cmp ecx, edx
mov eax, ecx
cmovl eax, edx
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x41ab6c
imul eax, eax, 0xc4
push eax
call fcn.0040cd20
mov ecx, dword [ebp - 0x1c]
lea edx, [edi + 8]
mov dword [ebp - 0xac], ecx
add esp, 4
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xb0], ecx
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], 0
test ecx, ecx
jle 0x41abc2
cmp ecx, 8
mov dword [ebp - 0x18], 0
mov eax, ecx
cmovl eax, edx
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x41abc2
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.0040cd20
mov ecx, dword [ebp - 0x24]
mov edi, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x90], ecx
imul ecx, dword [ebp - 0x38], 0xc4
push ecx
push 0
push dword [ebp - 0x44]
call fcn.0043e720
mov eax, dword [ebp - 0x24]
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push dword [ebp - 0x18]
call fcn.0043e720
add esp, 0x18
mov dword [ebp - 0x2c], 0
cmp dword [esi + 0x4c], 0
jle 0x41ad28
mov esi, dword [ebp - 0x44]
xor edx, edx
mov eax, dword [ebx + 8]
add esi, 0xa4
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], esi
nop word [eax + eax]
mov ecx, dword [eax + 0x54]
add ecx, edx
mov dword [esi - 4], 0xffffffff
mov dword [ebp - 0x30], ecx
xor edx, edx
mov ecx, dword [ebx + 8]
cmp dword [ecx + 0x34], edx
jle 0x41af2d
mov edi, dword [ebp - 0x18]
or esi, 0xffffffff
mov eax, esi
cmp esi, 0xffffffff
jne 0x41ac6a
mov eax, dword [ebp - 0x30]
or esi, esi
mov ecx, dword [ecx + 0x3c]
mov eax, dword [eax + 0x74]
cmp eax, dword [ecx + edx*4]
jne 0x41ac5f
mov dword [edi - 4], edx
mov esi, edx
mov ecx, dword [ebx + 8]
inc edx
mov eax, esi
cmp edx, dword [ecx + 0x34]
jl 0x41ac43
mov edi, dword [ebp - 0x4c]
cmp eax, 0xffffffff
je 0x41af2d
mov eax, dword [ebp - 0x30]
push dword [eax + 0xc]
mov esi, dword [eax]
push esi
call fcn.00425020
mov ecx, dword [ebp - 0x18]
push eax
add ecx, 0xffffff5c
push esi
push ecx
mov dword [ebp - 0x1c], ecx
call fcn.0041f7e0
add esp, 0x14
test eax, eax
je 0x41af2d
mov eax, dword [ebp - 0x1c]
mov edx, 0x45f458
mov esi, dword [ebp - 0x18]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], ecx
mov eax, dword [eax + 0x30]
test eax, eax
cmovne edx, eax
mov dword [esi - 8], edx
cmp word [edx], 0
je 0x41acee
nop
movzx eax, word [edx + 2]
test ax, ax
je 0x41aceb
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x41acd0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x40]
inc dword [edi + ecx*8]
mov ecx, dword [esi]
mov eax, dword [ebx + 8]
cmp dword [edi + edx*8 + 4], ecx
cmovge ecx, dword [edi + edx*8 + 4]
add esi, 0xc4
mov dword [edi + edx*8 + 4], ecx
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
inc ecx
add edx, 0x78
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], edx
cmp ecx, dword [eax + 0x4c]
jl 0x41ac20
mov eax, dword [ebp - 0x38]
xor esi, esi
mov dword [ebp - 0x30], esi
test eax, eax
jle 0x41affc
mov edx, dword [ebp - 0x44]
add edx, 0xa8
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x14], edx
mov eax, dword [edx - 8]
lea esi, [edx + 4]
mov ecx, esi
lea edi, [eax + eax*2]
mov eax, dword [edx - 4]
add eax, 0x20
mov dword [ebp - 0x18], edi
sar eax, 5
push eax
call fcn.0041ec50
mov eax, dword [esi]
shl eax, 2
push eax
mov eax, dword [ebp - 0x14]
push 0
push dword [eax + 0xc]
call fcn.0043e720
mov eax, dword [ebp - 0x4c]
add esp, 0xc
cmp dword [eax + edi*8 + 0xc], 0
lea esi, [eax + edi*8]
jne 0x41adae
mov eax, dword [eax + edi*8 + 4]
lea ecx, [esi + 0xc]
add eax, 0x20
sar eax, 5
push eax
call fcn.0041ec50
mov eax, dword [esi + 0xc]
shl eax, 2
push eax
push 0
push dword [esi + 0x14]
call fcn.0043e720
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x28], eax
cmp word [eax], 0
je 0x41ae58
movzx ecx, word [eax + 2]
test cx, cx
je 0x41ae58
movzx edi, word [eax]
cmp edi, ecx
ja 0x41ae45
mov eax, dword [ebp - 0x18]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov esi, edi
mov ecx, dword [ebp - 0x4c]
sar esi, 5
mov dword [ebp - 0x1c], edx
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], edx
jne 0x41ae36
mov eax, dword [ebp - 0x14]
add eax, 0xffffff58
push edi
push eax
call fcn.00424d20
mov edx, dword [ebp - 0x14]
add esp, 8
test eax, eax
je 0x41ae39
inc dword [edx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x4c]
inc dword [ecx + eax*8 + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x4c]
or dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x18]
mov eax, dword [edx + eax*8 + 0x14]
or dword [eax + esi*4], ecx
inc dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jbe 0x41add5
mov eax, dword [ebp - 0x28]
add eax, 4
mov dword [ebp - 0x28], eax
cmp word [eax], 0
jne 0x41adc1
add edx, 0xc4
sub dword [ebp - 0x40], 1
mov dword [ebp - 0x14], edx
jne 0x41ad47
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x38]
add esi, 0xb8
mov dword [ebp - 0x18], eax
nop word [eax + eax]
mov edi, dword [esi - 0x10]
cmp edi, dword [esi + 4]
jle 0x41aec3
lea eax, [edi*4]
push eax
call fcn.0040cd20
mov edx, dword [esi + 8]
add esp, 4
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x41aebd
mov ecx, dword [esi]
shl ecx, 2
push ecx
push edx
push eax
call fcn.0043e1a0
push dword [esi + 8]
call fcn.0040cd50
mov eax, dword [ebp - 0x1c]
add esp, 0x10
mov dword [esi + 8], eax
mov dword [esi + 4], edi
mov ecx, dword [esi - 4]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x2c], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x41afc2
xor edx, edx
mov dword [ebp - 0x20], edx
nop
mov eax, dword [ecx]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x41afad
xor ecx, ecx
mov edi, 1
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x28], edi
nop word [eax + eax]
test edi, eax
je 0x41af98
mov eax, edx
and eax, 0xffffffe0
add eax, ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi]
cmp eax, ecx
jne 0x41af82
lea edi, [eax + 1]
test ecx, ecx
je 0x41af36
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x41af3b
mov byte [ebp - 0x31], 0
jmp 0x41bc24
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x41af7f
lea eax, [edi*4]
push eax
call fcn.0040cd20
mov edx, dword [esi + 8]
add esp, 4
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x41af79
mov ecx, dword [esi]
shl ecx, 2
push ecx
push edx
push eax
call fcn.0043e1a0
push dword [esi + 8]
call fcn.0040cd50
mov eax, dword [ebp - 0x1c]
add esp, 0x10
mov dword [esi + 8], eax
mov dword [esi + 4], edi
mov edi, dword [ebp - 0x28]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x3c]
mov dword [eax + ecx*4], edx
inc dword [esi]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x20]
inc ecx
rol edi, 1
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x28], edi
cmp ecx, 0x20
jb 0x41af00
mov ecx, dword [ebp - 0x2c]
add ecx, 4
add edx, 0x20
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], edx
cmp ecx, dword [ebp - 0x14]
jb 0x41aee0
mov eax, dword [esi - 4]
test eax, eax
je 0x41afe7
push eax
mov dword [esi - 8], 0
mov dword [esi - 0xc], 0
call fcn.0040cd50
add esp, 4
mov dword [esi - 4], 0
add esi, 0xc4
sub dword [ebp - 0x18], 1
jne 0x41ae80
mov esi, dword [ebp - 0x30]
jmp 0x41b001
xor esi, esi
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x24], 0
jle 0x41b03e
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x24]
add edi, 0x14
mov eax, dword [edi]
test eax, eax
je 0x41b033
push eax
mov dword [edi - 4], 0
mov dword [edi - 8], 0
call fcn.0040cd50
add esp, 4
mov dword [edi], 0
add edi, 0x18
sub esi, 1
jne 0x41b010
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x41b06d
push eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x90], 0
call fcn.0040cd50
add esp, 4
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x88], eax
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 7
mov eax, 8
test esi, esi
jle 0x41b0db
cmp esi, eax
mov edi, esi
cmovl edi, eax
test edi, edi
jle 0x41b0db
mov eax, edi
shl eax, 4
push eax
call fcn.0040cd20
mov dword [ebp - 0x30], eax
add esp, 4
mov dword [ebp - 0x94], eax
mov eax, 8
mov dword [ebp - 0x98], edi
xor edi, edi
mov dword [ebp - 0x9c], esi
test esi, esi
jle 0x41b120
cmp esi, 8
mov edi, esi
cmovl edi, eax
test edi, edi
jle 0x41b11e
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push eax
call fcn.0040cd20
mov dword [ebp - 0xb8], edi
add esp, 4
mov dword [ebp - 0x40], eax
mov edi, eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0x1c], eax
jmp 0x41b120
xor edi, edi
mov ecx, esi
mov dword [ebp - 0xbc], esi
shl ecx, 4
push ecx
push 0
push dword [ebp - 0x30]
call fcn.0043e720
lea eax, [esi*8]
sub eax, esi
shl eax, 2
push eax
push 0
push edi
call fcn.0043e720
mov edx, dword [ebp - 0x38]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x14], eax
add esp, 0x18
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
test edx, edx
jle 0x41b397
mov edi, dword [ebp - 0x44]
xor esi, esi
add edi, 0x98
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edx
nop word [eax + eax]
mov edx, dword [edi + 0x10]
test edx, edx
je 0x41b37e
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x28], edx
add dword [ebp - 0x24], edx
shl eax, 4
add eax, dword [ebp - 0x30]
mov dword [edi - 4], eax
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx + eax*4]
mov eax, dword [ebx + 8]
mov dword [edi], ecx
mov edx, dword [eax + 0x54]
mov eax, dword [edx + esi + 0x10]
add edx, esi
mov dword [edi - 0x1c], eax
mov eax, dword [edi + 0x28]
mov dword [edi - 0x14], eax
mov eax, dword [edi + 0x20]
mov dword [edi - 0x18], 0
mov dword [edi - 0x10], eax
mov dword [edi - 0xc], ecx
mov al, byte [edx + 0x14]
mov byte [edi - 8], al
mov al, byte [edx + 0x18]
mov byte [edi - 7], al
movss xmm1, dword [edx + 0x10]
comiss xmm1, dword [0x45b7ec]
mov dword [ebp - 0x18], edx
jbe 0x41b245
mov eax, dword [edi - 0x7c]
mov edi, dword [edi - 0x94]
movzx edx, byte [eax + edi + 7]
movzx ecx, byte [eax + edi + 6]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
mov ecx, dword [ebp - 0x20]
movsx esi, dx
mov eax, dword [ecx - 0x7c]
movzx edx, byte [eax + edi + 5]
movzx ecx, byte [eax + edi + 4]
mov eax, 0x100
mov edi, dword [ebp - 0x20]
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx eax, dx
sub eax, esi
mov esi, dword [ebp - 0x2c]
movd xmm0, eax
jmp 0x41b26b
mov ecx, dword [edi - 0x84]
mov eax, dword [edi - 0x94]
xorps xmm1, xmmword [0x45b990]
movzx edx, byte [ecx + eax + 0x13]
movzx eax, byte [ecx + eax + 0x12]
shl eax, 8
add edx, eax
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mov eax, dword [ebx + 8]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 0x10]
divss xmm1, xmm0
mov dword [ebp - 0xa0], eax
movss dword [ebp - 0x3c], xmm1
cmp dword [edi + 0x20], ecx
jle 0x41b378
mov dword [ebp - 0x50], ecx
mov eax, dword [edi + 0x28]
lea esi, [edi - 0x98]
push dword [eax + ecx*4]
push esi
call fcn.00424d20
add esp, 8
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
sub esp, 0x10
movd xmm0, dword [ecx + 0x18]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mulss xmm0, xmm1
movss dword [esp + 4], xmm0
movd xmm0, dword [ecx + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp], xmm0
push eax
push esi
call fcn.004250b0
mov eax, dword [ebp - 0xa0]
add esp, 0x28
mov ecx, dword [ebp - 0xa4]
sub ecx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x50]
movzx edx, ax
mov eax, dword [ebp - 0x18]
add ecx, edx
dec cx
movss xmm1, dword [ebp - 0x3c]
add cx, word [eax + 0x14]
mov eax, dword [edi - 4]
mov word [esi + eax + 4], cx
mov ecx, dword [ebp - 0x58]
sub ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x18]
add ecx, edx
dec cx
add cx, word [eax + 0x18]
mov eax, dword [edi - 4]
mov word [esi + eax + 6], cx
mov eax, dword [edi - 4]
movzx ecx, word [esi + eax + 6]
movzx eax, word [esi + eax + 4]
add esi, 0x10
imul ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], esi
add eax, ecx
mov ecx, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ecx
cmp ecx, dword [edi + 0x20]
jl 0x41b294
mov esi, dword [ebp - 0x2c]
jmp 0x41b37b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
add edi, 0xc4
add esi, 0x78
sub dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x2c], esi
jne 0x41b180
movd xmm0, eax
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x41b3b0
sqrtsd xmm0, xmm0
jmp 0x41b3b5
call fcn.00448d40
mov edi, dword [ebx + 8]
cvtsd2ss xmm0, xmm0
mov eax, dword [edi + 0xc]
mov dword [edi + 0x20], 0
cvttss2si ecx, xmm0
inc ecx
test eax, eax
jg 0x41b40a
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x45f4ac]
jb 0x41b3e6
mov eax, 0x1000
jmp 0x41b40a
comiss xmm0, dword [0x45f4a8]
jb 0x41b3f6
mov eax, 0x800
jmp 0x41b40a
comiss xmm0, dword [0x45f4a4]
mov eax, 0x200
mov ecx, 0x400
cmovae eax, ecx
push 0x2c
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0043e720
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0x1c]
push 0x30
mov dword [ebp - 0x1c], eax
call fcn.0040cd20
mov esi, eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x48], eax
lea ecx, [eax*8]
push ecx
call fcn.0040cd20
add esp, 0x14
test esi, esi
je 0x41b49c
test eax, eax
je 0x41b499
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0x48]
push ecx
push eax
mov dword [ebp - 0x5c], eax
mov eax, 0x8000
sub eax, edx
mov dword [ebp - 0x80], esi
push eax
push ecx
push esi
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x6c], 0
call fcn.004249b0
add esp, 0x14
jmp 0x41b4af
push esi
jmp 0x41b4a1
test eax, eax
je 0x41b4a9
push eax
call fcn.0040cd50
add esp, 4
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc0], eax
mov esi, dword [edi + 0x40]
mov byte [ebp - 4], 8
mov dword [ebp - 0x24], esi
test esi, esi
jle 0x41b4fc
cmp esi, 8
mov ecx, esi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x41b4fc
shl ecx, 4
push ecx
call fcn.0040cd20
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, esi
shl ecx, 4
push ecx
push 0
push eax
call fcn.0043e720
add esp, 0xc
cmp dword [edi + 0x40], 0
jle 0x41b547
mov edx, dword [ebp - 0x18]
xor ecx, ecx
add edx, 6
xor esi, esi
nop dword [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 0x41b520
mov esi, dword [ebp - 0x24]
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.00424b30
add esp, 0xc
test esi, esi
jle 0x41b5a6
mov edx, dword [ebp - 0x18]
xor esi, esi
mov eax, dword [ebp - 0x24]
add edx, 0xa
cmp dword [edx + 2], 0
je 0x41b598
mov eax, dword [edi + 0x48]
movzx ecx, word [edx - 2]
mov word [esi + eax + 4], cx
mov eax, dword [edi + 0x48]
movzx ecx, word [edx]
mov word [esi + eax + 6], cx
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [ebp - 0x24]
cmp dword [edi + 0x20], ecx
cmovge ecx, dword [edi + 0x20]
mov dword [edi + 0x20], ecx
add esi, 0x1c
add edx, 0x10
sub eax, 1
mov dword [ebp - 0x24], eax
jne 0x41b565
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 9
test eax, eax
je 0x41b5ba
push eax
call fcn.0040cd50
add esp, 4
mov esi, dword [ebp - 0x38]
mov byte [ebp - 4], 7
test esi, esi
jle 0x41b62e
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x38]
add esi, 0xa8
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
test eax, eax
je 0x41b61c
push eax
push dword [esi - 0x14]
push dword [ebp - 0x14]
call fcn.00424b30
xor edi, edi
add esp, 0xc
cmp dword [esi], edi
jle 0x41b61c
xor edx, edx
mov eax, dword [esi - 0x14]
cmp dword [edx + eax + 0xc], 0
je 0x41b614
movzx ecx, word [edx + eax + 0xa]
movzx eax, word [edx + eax + 6]
add ecx, eax
mov eax, dword [ebx + 8]
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 0x41b5f1
add esi, 0xc4
sub dword [ebp - 0x1c], 1
jne 0x41b5d4
mov edi, dword [ebx + 8]
mov esi, dword [ebp - 0x38]
test byte [edi + 4], 1
mov eax, dword [edi + 0x20]
jne 0x41b65c
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 [0x45b844]
lea ecx, [eax + 1]
mov eax, dword [edi + 0x1c]
movaps xmm2, xmm1
mov dword [edi + 0x20], ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
imul eax, ecx
divss xmm2, xmm0
push eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x24], xmm2
divss xmm1, xmm0
movss dword [edi + 0x28], xmm1
call fcn.0040cd20
mov ecx, dword [edi + 0x20]
imul ecx, dword [edi + 0x1c]
mov dword [edi + 0x14], eax
push ecx
push 0
push eax
call fcn.0043e720
mov eax, dword [edi + 0x14]
add esp, 0x10
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x78], eax
test esi, esi
jle 0x41b843
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov edx, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x3c], esi
mov esi, dword [edi + 0x54]
add esi, eax
cmp dword [ecx + 0xa8], 0
je 0x41b822
push dword [ecx + 0x94]
lea eax, [ecx + 0x7c]
push 1
push eax
push ecx
lea eax, [ebp - 0x84]
push eax
call fcn.00425600
movss xmm1, dword [esi + 0x44]
add esp, 0x14
ucomiss xmm1, dword [0x45b844]
movss dword [ebp - 0x48], xmm1
lahf
test ah, 0x44
jnp 0x41b80f
xor esi, esi
nop
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x45b950]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.0043c650
movss xmm1, dword [ebp - 0x48]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [ebp + esi - 0x1c8], dl
inc esi
cmp esi, 0x100
jb 0x41b720
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x20], eax
mov edx, dword [ecx + 0x94]
cmp dword [ecx + 0xa8], eax
jle 0x41b812
lea ecx, [edx + 6]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
cmp dword [ecx + 6], 0
je 0x41b7f9
mov eax, dword [edi + 0x1c]
movzx edx, word [ecx + 4]
movzx edi, word [ecx]
movzx esi, word [ecx - 2]
mov dword [ebp - 0x2c], eax
movzx eax, word [ecx + 2]
imul edx, dword [ebp - 0x2c]
mov ecx, dword [ebx + 8]
add edx, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x28]
add edx, eax
test edi, edi
je 0x41b7f0
mov eax, dword [ebp - 0x2c]
nop dword [eax]
xor ecx, ecx
test esi, esi
je 0x41b7e6
nop word [eax + eax]
movzx eax, byte [ecx + edx]
mov al, byte [ebp + eax - 0x1c8]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x41b7d0
mov eax, dword [ebp - 0x2c]
dec edi
add edx, eax
test edi, edi
jg 0x41b7c0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov edi, dword [ebx + 8]
inc eax
add ecx, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], ecx
cmp eax, dword [edx + 0xa8]
jl 0x41b788
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 0x94], 0
add eax, 0x78
add ecx, 0xc4
sub edx, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x3c], edx
jne 0x41b6d3
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x5c]
call fcn.0040cd50
push dword [ebp - 0x14]
call fcn.0040cd50
mov eax, dword [ebp - 0x30]
add esp, 8
test eax, eax
je 0x41b885
push eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0
call fcn.0040cd50
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x38]
test edx, edx
jle 0x41bbef
mov esi, dword [ebp - 0x44]
xor ecx, ecx
add esi, 4
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x3c], esi
mov eax, edx
mov dword [ebp - 0x28], edx
cmp dword [esi + 0xa4], 0
je 0x41bb81
mov eax, dword [edi + 0x54]
xorps xmm4, xmm4
mov edi, dword [esi + 0x18]
add eax, ecx
mov esi, dword [esi]
mov dword [ebp - 0x18], eax
mov eax, dword [eax + 0x74]
movzx ecx, byte [edi + esi + 4]
movzx edx, byte [edi + esi + 5]
mov dword [ebp - 0x2c], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movzx ecx, byte [edi + esi + 6]
movsx eax, dx
movzx edx, byte [edi + esi + 7]
mov dword [ebp - 0x48], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
mov ecx, dword [ebp - 0x48]
movsx edx, dx
mov eax, ecx
sub eax, edx
movd xmm2, ecx
cvtdq2ps xmm2, xmm2
mov ecx, dword [ebp - 0x18]
movd xmm0, eax
mov eax, dword [ebp - 0x18]
cvtdq2ps xmm0, xmm0
movss xmm3, dword [eax + 0x10]
xor eax, eax
divss xmm3, xmm0
comiss xmm2, xmm4
movaps xmm0, xmm3
mulss xmm0, xmm2
seta al
lea eax, [eax*2 - 1]
movd xmm1, eax
xor eax, eax
cvtdq2ps xmm1, xmm1
addss xmm1, xmm0
cvttss2si esi, xmm1
movd xmm1, edx
cvtdq2ps xmm1, xmm1
mov edx, dword [ebp - 0x2c]
comiss xmm1, xmm4
mulss xmm3, xmm1
seta al
cmp byte [ecx + 0x3c], 0
lea eax, [eax*2 - 1]
movd xmm0, eax
lea eax, [edx + 0x4c]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x48], eax
addss xmm0, xmm3
cvttss2si edi, xmm0
jne 0x41b9b8
mov ecx, edx
call fcn.0041a3b0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [ebx + 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 0x48]
mov dword [edx + 0x3c], ecx
movss dword [eax], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [edx + 0x50], xmm0
movss xmm0, dword [eax]
movss xmm2, dword [0x45b81c]
inc word [edx + 0x40]
addss xmm0, xmm2
mov esi, dword [ebp - 0x3c]
xor edx, edx
movss xmm1, dword [ecx + 0x28]
mov edi, dword [ebx + 8]
movss dword [ebp - 0x54], xmm1
cvttss2si eax, xmm0
mov dword [ebp - 0x1c], edx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [ecx + 0x2c]
movss dword [ebp - 0x48], xmm0
cmp dword [esi + 0xa4], edx
jle 0x41bb7b
mov dword [ebp - 0x24], edx
nop word [eax + eax]
mov eax, dword [esi + 0xbc]
movss xmm7, dword [ecx + 0x34]
mov eax, dword [eax + edx*4]
mov edx, dword [esi + 0x94]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x24]
movss xmm0, dword [edx + eax + 0x10]
comiss xmm7, xmm0
ja 0x41ba3e
movss xmm7, dword [ecx + 0x38]
minss xmm7, xmm0
ucomiss xmm0, xmm7
movaps xmm6, xmm1
lahf
test ah, 0x44
jnp 0x41ba6a
cmp byte [ecx + 0x1c], 0
movaps xmm6, xmm7
subss xmm6, xmm0
mulss xmm6, xmm2
je 0x41ba66
cvttss2si eax, xmm6
movd xmm6, eax
cvtdq2ps xmm6, xmm6
addss xmm6, xmm1
movd xmm0, dword [edi + 0x1c]
sub esp, 0x24
movss xmm2, dword [0x45b844]
mov ecx, dword [ebp - 0x24]
cvtdq2ps xmm0, xmm0
movzx eax, word [edx + ecx]
movss xmm3, dword [0x45b844]
divss xmm2, xmm0
movd xmm0, dword [edi + 0x20]
cvtdq2ps xmm0, xmm0
movd xmm5, eax
movzx eax, word [edx + ecx + 2]
divss xmm3, xmm0
movd xmm4, eax
movzx eax, word [edx + ecx + 4]
movss dword [esp + 0x20], xmm7
cvtdq2ps xmm5, xmm5
movd xmm1, eax
movzx eax, word [edx + ecx + 6]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm5, xmm2
mulss xmm0, xmm3
mulss xmm1, xmm2
xorps xmm2, xmm2
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [edx + ecx + 0x18]
addss xmm0, xmm2
movss dword [esp + 0x18], xmm1
cvtdq2ps xmm4, xmm4
addss xmm0, dword [ebp - 0x48]
mulss xmm4, xmm3
movss dword [esp + 0x14], xmm4
movss dword [esp + 0x10], xmm5
movss dword [esp + 0xc], xmm0
movss xmm0, dword [edx + ecx + 0x14]
addss xmm0, xmm2
addss xmm0, xmm6
movss dword [esp + 8], xmm0
movss xmm0, dword [edx + ecx + 0xc]
addss xmm0, xmm2
addss xmm0, dword [ebp - 0x48]
movss dword [esp + 4], xmm0
movss xmm0, dword [edx + ecx + 8]
mov ecx, dword [ebp - 0x2c]
addss xmm0, xmm2
addss xmm0, xmm6
movss dword [esp], xmm0
push dword [ebp - 0x58]
call fcn.00418460
mov edx, dword [ebp - 0x1c]
add dword [ebp - 0x24], 0x1c
inc edx
movss xmm1, dword [ebp - 0x54]
movss xmm2, dword [0x45b81c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
cmp edx, dword [esi + 0xa4]
jl 0x41ba10
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
add esi, 0xc4
add ecx, 0x78
sub eax, 1
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], eax
jne 0x41b8a3
mov edx, dword [ebp - 0x38]
test edx, edx
jle 0x41bbef
mov esi, dword [ebp - 0x44]
add esi, 0xb4
nop dword [eax]
mov eax, dword [esi + 0xc]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x41bbc7
push eax
call fcn.0040cd50
mov edx, dword [ebp - 0x38]
add esp, 4
mov eax, dword [esi]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x41bbdd
push eax
call fcn.0040cd50
mov edx, dword [ebp - 0x38]
add esp, 4
add esi, 0xc4
mov byte [ebp - 4], 7
sub edx, 1
mov dword [ebp - 0x38], edx
jne 0x41bbb0
push edi
call fcn.0041a750
add esp, 4
mov byte [ebp - 0x31], 1
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x41bc10
push eax
call fcn.0040cd50
add esp, 4
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x41bc24
push eax
call fcn.0040cd50
add esp, 4
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 0xe
test eax, eax
je 0x41bc38
push eax
call fcn.0040cd50
add esp, 4
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 0xf
test eax, eax
je 0x41bc4f
push eax
call fcn.0040cd50
add esp, 4
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x31]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret