Function at 0x420380
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
push 0xffffffffffffffff
push 0x4a34ec
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x210
mov eax, dword [0x510140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x15c], esi
cmp dword [esi + 0x58], 0
jge 0x42043b
test byte [esi + 4], 2
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1a4], 0xffffffff
lea ecx, [esi + 0x40]
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x1ac], connect
push eax
mov dword [ebp - 0x1a8], 0x1b00d9
je 0x42042f
mov dword [ebp - 0x1a8], 0x20002
call fcn.00423840
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x58], eax
mov ecx, dword [esi + 0x14]
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
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
mov dword [ebp - 0x144], edx
test ecx, ecx
je 0x42049a
mov eax, dword [0x513c00]
test eax, eax
je 0x42048e
dec dword [eax + 0x374]
push ecx
call edx
mov edx, dword [ebp - 0x144]
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4204b6
mov eax, dword [0x513c00]
test eax, eax
je 0x4204b0
dec dword [eax + 0x374]
push ecx
call edx
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x1b0], edi
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x4c]
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x120], 8
mov dword [ebp - 0x12c], edx
test ecx, ecx
jle 0x420570
cmp ecx, 8
mov eax, ecx
cmovl eax, dword [ebp - 0x120]
mov dword [ebp - 0x11c], eax
test eax, eax
jle 0x420570
mov ecx, dword [0x513c00]
test ecx, ecx
je 0x420540
inc dword [ecx + 0x374]
imul eax, eax, 0xc4
push eax
call edx
mov ecx, dword [ebp - 0x11c]
add esp, 4
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x1d4], ecx
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1d8], ecx
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x128], ecx
test ecx, ecx
jle 0x4205d5
cmp ecx, 8
mov eax, ecx
cmovl eax, dword [ebp - 0x120]
mov dword [ebp - 0x11c], eax
test eax, eax
jle 0x4205d5
mov ecx, dword [0x513c00]
test ecx, ecx
je 0x4205a9
inc dword [ecx + 0x374]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call edx
mov ecx, dword [ebp - 0x128]
mov edi, eax
mov eax, dword [ebp - 0x11c]
add esp, 4
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x1b0], edi
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1b8], ecx
imul ecx, dword [ebp - 0x154], 0xc4
push ecx
push 0
push dword [ebp - 0x164]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x128]
add esp, 0xc
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x130], 0
cmp dword [esi + 0x4c], 0
jle 0x420786
mov eax, dword [ebp - 0x164]
xor edx, edx
add eax, 0xa4
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x134], eax
nop dword [eax + eax]
mov ecx, dword [esi + 0x54]
add ecx, edx
mov dword [eax - 4], 0xffffffff
xor edx, edx
mov dword [ebp - 0x14c], ecx
cmp dword [esi + 0x34], edx
jle 0x4207f9
mov edi, dword [ebp - 0x134]
or eax, 0xffffffff
mov ecx, eax
cmp eax, 0xffffffff
jne 0x420690
mov eax, dword [ebp - 0x14c]
mov ecx, dword [esi + 0x3c]
mov eax, dword [eax + 0x74]
cmp eax, dword [ecx + edx*4]
jne 0x420685
mov dword [edi - 4], edx
mov eax, edx
jmp 0x420688
or eax, 0xffffffff
inc edx
mov ecx, eax
cmp edx, dword [esi + 0x34]
jl 0x420666
mov edi, dword [ebp - 0x160]
cmp ecx, 0xffffffff
je 0x4207f9
mov eax, dword [ebp - 0x14c]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.00416880
mov ecx, dword [ebp - 0x134]
mov edx, esi
add ecx, 0xffffff5c
push eax
mov dword [ebp - 0x11c], ecx
call fcn.00416b50
add esp, 4
test eax, eax
je 0x4207f9
mov eax, dword [ebp - 0x11c]
mov edx, 0x5039bc
mov esi, dword [ebp - 0x134]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x120], ecx
mov eax, dword [eax + 0x30]
test eax, eax
cmovne edx, eax
mov dword [esi - 8], edx
cmp word [edx], 0
je 0x420731
nop dword [eax]
movzx eax, word [edx + 2]
test ax, ax
je 0x42072b
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x420710
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x120]
inc dword [edi + ecx*8]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x130]
cmp dword [edi + edx*8 + 4], ecx
cmovge ecx, dword [edi + edx*8 + 4]
add esi, 0xc4
mov dword [ebp - 0x134], esi
inc eax
mov esi, dword [ebp - 0x15c]
mov dword [edi + edx*8 + 4], ecx
mov edx, dword [ebp - 0x150]
add edx, 0x78
mov dword [ebp - 0x130], eax
cmp eax, dword [esi + 0x4c]
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x150], edx
jl 0x420640
mov eax, dword [ebp - 0x154]
xor esi, esi
mov dword [ebp - 0x134], esi
test eax, eax
jle 0x420bb6
mov edx, dword [ebp - 0x164]
add edx, 0xa8
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x124], edx
mov eax, dword [edx - 8]
mov ecx, dword [edx - 4]
add ecx, 0x20
sar ecx, 5
lea esi, [eax + eax*2]
mov dword [ebp - 0x138], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x11c], eax
cmp ecx, eax
jle 0x420847
test eax, eax
je 0x420805
cdq
sub eax, edx
mov edx, dword [ebp - 0x124]
sar eax, 1
add eax, dword [ebp - 0x11c]
mov dword [ebp - 0x120], eax
jmp 0x42080f
mov byte [ebp - 0x145], 0
jmp 0x421e03
mov dword [ebp - 0x120], 8
cmp dword [ebp - 0x120], ecx
lea eax, [edx + 4]
mov dword [ebp - 0x130], eax
mov eax, ecx
cmovg eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x130]
push eax
call fcn.004151b0
mov edx, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x130]
jmp 0x42084a
lea eax, [edx + 4]
mov dword [eax], ecx
lea eax, [ecx*4]
push eax
push 0
push dword [edx + 0xc]
call sub.VCRUNTIME140.dll_memset
lea ecx, [esi*8 + 0xc]
add esp, 0xc
add ecx, edi
mov dword [ebp - 0x120], ecx
cmp dword [ecx], 0
jne 0x4208d4
mov esi, dword [edi + esi*8 + 4]
mov eax, dword [ecx + 4]
add esi, 0x20
sar esi, 5
mov dword [ebp - 0x11c], eax
cmp esi, eax
jle 0x4208bd
test eax, eax
je 0x42089f
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [ebp - 0x11c]
jmp 0x4208a4
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, dword [ebp - 0x120]
push eax
call fcn.004151b0
mov ecx, dword [ebp - 0x120]
lea eax, [esi*4]
mov dword [ecx], esi
push eax
push 0
push dword [ecx + 8]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x124]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x140], eax
cmp word [eax], 0
je 0x4209c8
nop dword [eax]
movzx ecx, word [eax + 2]
test cx, cx
je 0x4209c2
movzx edi, word [eax]
cmp edi, ecx
ja 0x4209a9
nop dword [eax + eax]
mov eax, dword [ebp - 0x14c]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov esi, edi
mov ecx, dword [ebp - 0x160]
sar esi, 5
mov dword [ebp - 0x11c], edx
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], edx
jne 0x420990
mov ecx, dword [ebp - 0x124]
mov edx, edi
add ecx, 0xffffff58
call fcn.00417060
mov edx, dword [ebp - 0x124]
test eax, eax
je 0x420996
inc dword [edx]
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x160]
inc dword [ecx + eax*8 + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x160]
or dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x14c]
mov eax, dword [edx + eax*8 + 0x14]
or dword [eax + esi*4], ecx
inc dword [ebp - 0x134]
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x140]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jbe 0x420910
mov eax, dword [ebp - 0x140]
add eax, 4
mov dword [ebp - 0x140], eax
cmp word [eax], 0
jne 0x4208f0
mov edi, dword [ebp - 0x160]
add edx, 0xc4
sub dword [ebp - 0x150], 1
mov dword [ebp - 0x124], edx
jne 0x4207b4
mov esi, dword [ebp - 0x164]
mov eax, dword [ebp - 0x154]
add esi, 0xb8
mov dword [ebp - 0x14c], eax
nop dword [eax]
mov edi, dword [esi - 0x10]
cmp edi, dword [esi + 4]
jle 0x420a71
mov eax, dword [0x513c00]
test eax, eax
je 0x420a17
inc dword [eax + 0x374]
lea eax, [edi*4]
push eax
call dword [ebp - 0x12c]
mov edx, dword [esi + 8]
add esp, 4
mov dword [ebp - 0x11c], eax
test edx, edx
je 0x420a6b
mov ecx, dword [esi]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 8]
add esp, 0xc
test ecx, ecx
je 0x420a5b
mov eax, dword [0x513c00]
test eax, eax
je 0x420a5b
dec dword [eax + 0x374]
push ecx
call dword [ebp - 0x144]
mov eax, dword [ebp - 0x11c]
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 4], edi
mov edx, dword [esi - 4]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x150], edx
lea eax, [edx + eax*4]
mov dword [ebp - 0x158], eax
cmp edx, eax
jae 0x420b60
xor ecx, ecx
mov dword [ebp - 0x16c], ecx
mov edi, dword [edx]
mov dword [ebp - 0x138], edi
test edi, edi
je 0x420b46
xor eax, eax
mov edx, 1
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x130], edx
nop dword [eax]
test edx, edi
je 0x420b26
mov edi, ecx
mov ecx, dword [esi + 4]
and edi, 0xffffffe0
add edi, eax
mov eax, dword [esi]
cmp eax, ecx
jne 0x420b0a
lea edx, [eax + 1]
mov dword [ebp - 0x11c], edx
test ecx, ecx
je 0x420af2
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x11c]
sar eax, 1
add eax, ecx
jmp 0x420af7
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.004151b0
mov edx, dword [ebp - 0x130]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edi
inc dword [esi]
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x16c]
mov edi, dword [ebp - 0x138]
inc eax
rol edx, 1
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x130], edx
cmp eax, 0x20
jl 0x420ac0
mov edx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x158]
add edx, 4
add ecx, 0x20
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x16c], ecx
cmp edx, eax
jb 0x420a96
mov ecx, dword [esi - 4]
test ecx, ecx
je 0x420b95
mov eax, dword [0x513c00]
mov dword [esi - 8], 0
mov dword [esi - 0xc], 0
test eax, eax
je 0x420b84
dec dword [eax + 0x374]
push ecx
call dword [ebp - 0x144]
add esp, 4
mov dword [esi - 4], 0
add esi, 0xc4
sub dword [ebp - 0x14c], 1
jne 0x420a00
mov edi, dword [ebp - 0x160]
mov esi, dword [ebp - 0x134]
jmp 0x420bbe
xor esi, esi
mov dword [ebp - 0x134], esi
cmp dword [ebp - 0x128], 0
jle 0x420c2f
mov esi, dword [ebp - 0x144]
lea eax, [edi + 0x14]
mov edi, dword [ebp - 0x128]
mov dword [ebp - 0x120], eax
nop dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x420c15
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x513c00]
test eax, eax
je 0x420c03
dec dword [eax + 0x374]
push ecx
call esi
mov eax, dword [ebp - 0x120]
add esp, 4
mov dword [eax], 0
add eax, 0x18
mov dword [ebp - 0x120], eax
sub edi, 1
jne 0x420be0
mov edi, dword [ebp - 0x160]
mov esi, dword [ebp - 0x134]
test edi, edi
je 0x420c6e
mov eax, dword [0x513c00]
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b8], 0
test eax, eax
je 0x420c56
dec dword [eax + 0x374]
push edi
call dword [ebp - 0x144]
add esp, 4
xor eax, eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x1b0], eax
xor eax, eax
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x1dc], eax
mov eax, 8
test esi, esi
jle 0x420ce1
cmp esi, eax
mov edi, esi
cmovl edi, eax
test edi, edi
jle 0x420ce1
mov eax, dword [0x513c00]
test eax, eax
je 0x420cbb
inc dword [eax + 0x374]
mov eax, edi
shl eax, 4
push eax
call dword [ebp - 0x12c]
mov dword [ebp - 0x134], eax
add esp, 4
mov dword [ebp - 0x1bc], eax
mov eax, 8
mov dword [ebp - 0x1c0], edi
mov dword [ebp - 0x1c4], esi
test esi, esi
jle 0x420d2e
cmp esi, 8
mov edi, esi
cmovl edi, eax
test edi, edi
jle 0x420d2e
mov eax, dword [0x513c00]
test eax, eax
je 0x420d06
inc dword [eax + 0x374]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push eax
call dword [ebp - 0x12c]
add esp, 4
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x1e0], edi
mov ecx, esi
mov dword [ebp - 0x1e4], esi
shl ecx, 4
push ecx
push 0
push dword [ebp - 0x134]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esi*8]
sub eax, esi
shl eax, 2
push eax
push 0
push dword [ebp - 0x14c]
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0x154]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x13c], eax
add esp, 0xc
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x128], ecx
test edx, edx
jle 0x421191
mov esi, dword [ebp - 0x164]
xor edi, edi
add esi, 0x98
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x11c], edx
nop dword [eax + eax]
mov edx, dword [esi + 0x10]
test edx, edx
je 0x42116f
mov eax, dword [ebp - 0x140]
add dword [ebp - 0x140], edx
add dword [ebp - 0x128], edx
shl eax, 4
add eax, dword [ebp - 0x134]
mov dword [esi - 4], eax
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp - 0x14c]
lea ecx, [ecx + eax*4]
mov eax, dword [ebp - 0x15c]
mov dword [esi], ecx
mov edx, dword [eax + 0x54]
mov eax, dword [edx + edi + 0x10]
add edx, edi
mov dword [esi - 0x1c], eax
mov eax, dword [esi + 0x28]
mov dword [esi - 0x14], eax
mov eax, dword [esi + 0x20]
mov dword [esi - 0x18], 0
mov dword [esi - 0x10], eax
mov dword [esi - 0xc], ecx
mov al, byte [edx + 0x14]
mov byte [esi - 8], al
mov al, byte [edx + 0x18]
mov byte [esi - 7], al
movss xmm1, dword [edx + 0x10]
comiss xmm1, dword [0x505664]
mov dword [ebp - 0x17c], edx
jbe 0x420e86
mov edi, dword [esi - 0x7c]
mov eax, 0x100
mov esi, dword [esi - 0x94]
cwde
movzx ecx, byte [edi + esi + 4]
movzx edx, byte [edi + esi + 5]
movsx ecx, cx
imul ecx, eax
mov eax, 0x100
cwde
add dx, cx
movzx ecx, byte [edi + esi + 6]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 7]
mov esi, dword [ebp - 0x158]
mov edi, dword [ebp - 0x124]
movsx edx, dx
add cx, ax
movsx eax, cx
sub edx, eax
jmp 0x420ea8
mov ecx, dword [esi - 0x84]
mov eax, dword [esi - 0x94]
xorps xmm1, xmmword [0x5059c0]
movzx edx, byte [ecx + eax + 0x13]
movzx eax, byte [ecx + eax + 0x12]
shl eax, 8
add edx, eax
movd xmm0, edx
xor ecx, ecx
cvtdq2ps xmm0, xmm0
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x158], ecx
mov edx, dword [eax + 0x10]
divss xmm1, xmm0
movss dword [ebp - 0x138], xmm1
cmp dword [esi + 0x20], ecx
jle 0x421163
movzx eax, dx
xor edi, edi
mov edx, eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x190], edx
nop dword [eax + eax]
mov edx, dword [esi + 0x28]
mov edx, dword [edx + ecx*4]
lea ecx, [esi - 0x98]
call fcn.00417060
mov ecx, dword [ebp - 0x17c]
mov edx, eax
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x150], 0
movd xmm0, dword [ecx + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x130], xmm0
movd xmm0, dword [ecx + 0x18]
lea ecx, [ebp - 0x184]
push ecx
cvtdq2ps xmm0, xmm0
lea ecx, [ebp - 0x188]
push ecx
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x120]
mulss xmm0, xmm1
push ecx
lea ecx, [esi - 0x98]
movss dword [ebp - 0x16c], xmm0
call fcn.00417470
add esp, 0x10
test eax, eax
jne 0x420f8a
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x130], eax
jmp 0x4210d4
xorps xmm0, xmm0
sub esp, 8
cvtsi2ss xmm0, dword [ebp - 0x120]
mulss xmm0, dword [ebp - 0x130]
addss xmm0, dword [0x505664]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x178], xmm0
fld qword [ebp - 0x178]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [ebp - 0x178]
movsd xmm0, qword [ebp - 0x178]
xorps xmm1, xmm1
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebp - 0x184]
mov dword [ebp - 0x18c], eax
mulss xmm0, dword [ebp - 0x16c]
subss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x178], xmm0
fld qword [ebp - 0x178]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [ebp - 0x178]
movsd xmm0, qword [ebp - 0x178]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebp - 0x188]
mov dword [ebp - 0x180], eax
mulss xmm0, dword [ebp - 0x130]
addss xmm0, dword [0x505664]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x178], xmm0
fld qword [ebp - 0x178]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x178]
movsd xmm0, qword [ebp - 0x178]
xorps xmm1, xmm1
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebp - 0x150]
mov dword [ebp - 0x120], eax
mulss xmm0, dword [ebp - 0x16c]
subss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x178], xmm0
fld qword [ebp - 0x178]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x178]
movsd xmm0, qword [ebp - 0x178]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x18c]
mov edx, dword [ebp - 0x17c]
movss xmm1, dword [ebp - 0x138]
movzx ecx, word [edx + 0x14]
sub cx, ax
mov eax, dword [esi - 4]
dec cx
add cx, word [ebp - 0x120]
add cx, word [ebp - 0x190]
mov word [edi + eax + 4], cx
movzx ecx, word [edx + 0x18]
sub cx, word [ebp - 0x180]
mov eax, dword [esi - 4]
dec cx
add cx, word [ebp - 0x130]
add cx, word [ebp - 0x168]
mov word [edi + eax + 6], cx
mov eax, dword [esi - 4]
movzx ecx, word [edi + eax + 6]
movzx eax, word [edi + eax + 4]
add edi, 0x10
imul ecx, eax
mov eax, dword [ebp - 0x13c]
add eax, ecx
mov ecx, dword [ebp - 0x158]
inc ecx
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x158], ecx
cmp ecx, dword [esi + 0x20]
jl 0x420ef0
mov edi, dword [ebp - 0x124]
jmp 0x421169
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x128]
add esi, 0xc4
add edi, 0x78
sub dword [ebp - 0x11c], 1
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x124], edi
jne 0x420db0
movd xmm0, eax
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x4211aa
sqrtsd xmm0, xmm0
jmp 0x4211af
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov esi, dword [ebp - 0x15c]
cvtsd2ss xmm0, xmm0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x20], 0
cvttss2si ecx, xmm0
inc ecx
test eax, eax
jg 0x421207
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x505764]
jb 0x4211e3
mov eax, 0x1000
jmp 0x421207
comiss xmm0, dword [0x505760]
jb 0x4211f3
mov eax, 0x800
jmp 0x421207
comiss xmm0, dword [0x505754]
mov eax, 0x200
mov ecx, 0x400
cmovae eax, ecx
mov ecx, esi
push 0x2c
push 0
mov dword [ecx + 0x1c], eax
lea eax, [ebp - 0x210]
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi + 0x10]
add esp, 0xc
mov dword [ebp - 0x138], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x11c], eax
mov eax, dword [0x513c00]
test eax, eax
je 0x421240
inc dword [eax + 0x374]
push 0x30
call dword [ebp - 0x12c]
mov ecx, dword [0x513c00]
mov edi, eax
mov eax, dword [ebp - 0x11c]
add esp, 4
sub eax, dword [ebp - 0x138]
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x168], eax
test ecx, ecx
je 0x421275
inc dword [ecx + 0x374]
shl eax, 3
push eax
call dword [ebp - 0x12c]
add esp, 4
test edi, edi
je 0x421300
test eax, eax
je 0x4212ee
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x208], edx
mov dword [ebp - 0x200], edx
mov edx, dword [ebp - 0x168]
push edx
push eax
mov dword [ebp - 0x1e8], eax
mov eax, 0x8000
sub eax, ecx
mov dword [ebp - 0x1fc], ecx
push eax
mov ecx, edi
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x1f4], 1
mov dword [ebp - 0x1f0], 1
mov dword [ebp - 0x1f8], 0
call fcn.00415bb0
add esp, 0xc
jmp 0x42132a
mov eax, dword [0x513c00]
test eax, eax
je 0x4212fd
dec dword [eax + 0x374]
push edi
jmp 0x421315
test eax, eax
je 0x42131e
mov ecx, dword [0x513c00]
test ecx, ecx
je 0x421314
dec dword [ecx + 0x374]
push eax
call dword [ebp - 0x144]
add esp, 4
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x124], eax
xor eax, eax
mov dword [ebp - 0x128], eax
mov edi, dword [esi + 0x40]
mov dword [ebp - 0x13c], edi
test edi, edi
jle 0x421372
cmp edi, 8
mov ecx, edi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x421372
mov eax, dword [0x513c00]
test eax, eax
je 0x42135f
inc dword [eax + 0x374]
shl ecx, 4
push ecx
call dword [ebp - 0x12c]
add esp, 4
mov dword [ebp - 0x128], eax
mov ecx, edi
shl ecx, 4
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [esi + 0x40], 0
jle 0x4213c0
mov edx, dword [ebp - 0x128]
xor ecx, ecx
add edx, 6
xor edi, edi
mov eax, dword [esi + 0x48]
lea ecx, [ecx + 0x1c]
inc edi
lea edx, [edx + 0x10]
movzx eax, word [eax + ecx - 0x18]
mov word [edx - 0x12], ax
mov eax, dword [esi + 0x48]
movzx eax, word [eax + ecx - 0x16]
mov word [edx - 0x10], ax
cmp edi, dword [esi + 0x40]
jl 0x421396
mov edi, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x124]
push edi
call fcn.00416080
add esp, 4
test edi, edi
jle 0x421437
mov edx, dword [ebp - 0x128]
xor edi, edi
mov eax, dword [ebp - 0x13c]
add edx, 0xa
nop word [eax + eax]
cmp dword [edx + 2], 0
je 0x421426
mov eax, dword [esi + 0x48]
movzx ecx, word [edx - 2]
mov word [eax + edi + 8], cx
mov eax, dword [esi + 0x48]
movzx ecx, word [edx]
mov word [eax + edi + 0xa], cx
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [ebp - 0x13c]
cmp dword [esi + 0x20], ecx
cmovge ecx, dword [esi + 0x20]
mov dword [esi + 0x20], ecx
add edi, 0x1c
add edx, 0x10
sub eax, 1
mov dword [ebp - 0x13c], eax
jne 0x4213f0
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x42145b
mov ecx, dword [0x513c00]
test ecx, ecx
je 0x421451
dec dword [ecx + 0x374]
push eax
call dword [ebp - 0x144]
add esp, 4
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x154]
test edi, edi
jle 0x4214f9
mov edi, dword [ebp - 0x164]
mov eax, dword [ebp - 0x154]
add edi, 0xa8
mov dword [ebp - 0x138], eax
mov eax, dword [edi]
test eax, eax
je 0x4214e4
mov edx, dword [edi - 0x14]
mov ecx, dword [ebp - 0x124]
push eax
call fcn.00416080
xor ecx, ecx
add esp, 4
mov dword [ebp - 0x11c], ecx
cmp dword [edi], ecx
jle 0x4214e4
xor edx, edx
nop dword [eax + eax]
mov eax, dword [edi - 0x14]
cmp dword [eax + edx + 0xc], 0
je 0x4214d6
movzx ecx, word [eax + edx + 0xa]
movzx eax, word [eax + edx + 6]
add ecx, eax
cmp dword [esi + 0x20], ecx
cmovge ecx, dword [esi + 0x20]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 0x11c]
inc ecx
add edx, 0x10
mov dword [ebp - 0x11c], ecx
cmp ecx, dword [edi]
jl 0x4214b0
add edi, 0xc4
sub dword [ebp - 0x138], 1
jne 0x421485
mov edi, dword [ebp - 0x154]
test byte [esi + 4], 1
mov eax, dword [esi + 0x20]
jne 0x421527
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 [0x5056d0]
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
divss xmm1, xmm0
mov eax, dword [0x513c00]
movss dword [esi + 0x24], xmm2
movss dword [esi + 0x28], xmm1
test eax, eax
je 0x42156d
inc dword [eax + 0x374]
push ecx
call dword [ebp - 0x12c]
mov ecx, dword [esi + 0x20]
add esp, 4
imul ecx, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi + 0x14]
add esp, 0xc
mov dword [ebp - 0x1ec], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x204], eax
test edi, edi
jle 0x421780
mov ecx, dword [ebp - 0x164]
xor eax, eax
mov dword [ebp - 0x138], eax
mov edx, edi
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x158], edi
mov edi, dword [esi + 0x54]
add edi, eax
cmp dword [ecx + 0xa8], 0
je 0x421754
push dword [ecx + 0x94]
lea eax, [ecx + 0x7c]
mov edx, ecx
push ecx
push eax
lea ecx, [ebp - 0x210]
call fcn.0041c6c0
movss xmm1, dword [edi + 0x44]
add esp, 0xc
ucomiss xmm1, dword [0x5056d0]
movss dword [ebp - 0x168], xmm1
lahf
test ah, 0x44
jnp 0x421738
xor edi, edi
movd xmm0, edi
mov eax, edi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x505940]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.004a2520
movss xmm1, dword [ebp - 0x168]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [ebp + edi - 0x118], dl
inc edi
cmp edi, 0x100
jb 0x421610
mov eax, dword [ebp - 0x12c]
xor ecx, ecx
mov dword [ebp - 0x140], ecx
mov edx, dword [eax + 0x94]
cmp dword [eax + 0xa8], ecx
jle 0x421738
lea eax, [edx + 6]
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x13c], eax
nop word [eax + eax]
cmp dword [eax + 6], 0
je 0x42171c
mov ecx, dword [esi + 0x1c]
movzx edx, word [eax + 4]
movzx edi, word [eax]
movzx esi, word [eax - 2]
movzx eax, word [eax + 2]
imul edx, ecx
mov dword [ebp - 0x11c], ecx
mov ecx, dword [ebp - 0x15c]
add edx, dword [ecx + 0x14]
add edx, eax
test edi, edi
je 0x421708
mov eax, dword [ebp - 0x11c]
nop word [eax + eax]
xor ecx, ecx
test esi, esi
je 0x4216f9
nop word [eax + eax]
movzx eax, byte [ecx + edx]
mov al, byte [ebp + eax - 0x118]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x4216e0
mov eax, dword [ebp - 0x11c]
dec edi
add edx, eax
test edi, edi
jg 0x4216d0
mov esi, dword [ebp - 0x15c]
jmp 0x42170a
mov esi, ecx
mov edx, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x13c]
inc ecx
add eax, 0x10
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x13c], eax
cmp ecx, dword [edx + 0xa8]
jl 0x421690
mov ecx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x138]
mov edx, dword [ebp - 0x158]
mov dword [ecx + 0x94], 0
add eax, 0x78
add ecx, 0xc4
sub edx, 1
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x158], edx
jne 0x4215c3
mov edi, dword [ebp - 0x20c]
jmp 0x421786
mov edi, dword [ebp - 0x124]
cmp dword [ebp - 0x1e8], 0
je 0x42179e
mov eax, dword [0x513c00]
test eax, eax
je 0x42179e
dec dword [eax + 0x374]
push dword [ebp - 0x1e8]
call dword [ebp - 0x144]
add esp, 4
test edi, edi
je 0x4217c0
mov eax, dword [0x513c00]
test eax, eax
je 0x4217c0
dec dword [eax + 0x374]
push edi
mov edi, dword [ebp - 0x144]
call edi
mov ecx, dword [ebp - 0x134]
add esp, 4
test ecx, ecx
je 0x42180d
mov eax, dword [0x513c00]
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c4], 0
test eax, eax
je 0x4217f9
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x1bc], ecx
mov eax, dword [ebp - 0x154]
test eax, eax
jle 0x421da3
mov edi, dword [ebp - 0x164]
xor ecx, ecx
movss xmm4, dword [0x5056a4]
add edi, 4
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x120], eax
cmp dword [edi + 0xa4], 0
je 0x421d05
mov eax, dword [esi + 0x54]
xorps xmm6, xmm6
mov esi, dword [ebp - 0x140]
add eax, ecx
mov edi, dword [edi + 0x18]
mov dword [ebp - 0x128], eax
mov eax, dword [eax + 0x74]
mov esi, dword [esi]
mov dword [ebp - 0x124], eax
mov eax, 0x100
cwde
movzx ecx, byte [edi + esi + 6]
movzx edx, byte [edi + esi + 7]
movsx ecx, cx
imul ecx, eax
add dx, cx
movzx ecx, byte [edi + esi + 4]
movsx eax, dx
movzx edx, byte [edi + esi + 5]
mov dword [ebp - 0x168], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx ecx, dx
mov edx, dword [ebp - 0x168]
mov eax, ecx
sub eax, edx
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [ebp - 0x128]
cvtdq2ps xmm0, xmm0
movss xmm2, dword [eax + 0x10]
xor eax, eax
divss xmm2, xmm0
comiss xmm1, xmm6
mulss xmm1, xmm2
seta al
lea eax, [eax*2 - 1]
movd xmm0, eax
xor eax, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movd xmm1, edx
mov edx, dword [ebp - 0x124]
cvtdq2ps xmm1, xmm1
lea ecx, [edx + 0x3c]
mov dword [ebp - 0x13c], ecx
lea ecx, [edx + 0x38]
cvttss2si esi, xmm0
mov dword [ebp - 0x12c], ecx
mov ecx, dword [ebp - 0x128]
comiss xmm1, xmm6
mulss xmm1, xmm2
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 - 0x168], eax
addss xmm0, xmm1
cvttss2si edi, xmm0
jne 0x4219ab
mov ecx, edx
call fcn.00422360
mov ecx, dword [ebp - 0x128]
xorps xmm6, xmm6
mov edx, dword [ebp - 0x124]
movss xmm4, dword [0x5056a4]
movd xmm0, esi
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x13c]
cvtdq2ps xmm0, xmm0
mov dword [eax], ecx
mov ecx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x15c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x128]
movss dword [eax], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [edx + 0x50], xmm0
jmp 0x4219c3
mov esi, dword [ebp - 0x13c]
mov dword [ebp - 0x13c], esi
mov esi, dword [ebp - 0x12c]
mov dword [ebp - 0x12c], esi
movss xmm0, dword [eax]
inc word [edx + 0x40]
addss xmm0, xmm4
mov edi, dword [ebp - 0x140]
movss xmm2, dword [ecx + 0x28]
mov esi, dword [ebp - 0x15c]
movss dword [ebp - 0x1cc], xmm2
cmp dword [edi + 0xa4], 0
cvttss2si eax, xmm0
mov dword [ebp - 0x16c], 0
movd xmm5, eax
cvtdq2ps xmm5, xmm5
addss xmm5, dword [ecx + 0x2c]
movss dword [ebp - 0x174], xmm5
jle 0x421cf9
add edx, 0x20
mov dword [ebp - 0x168], edx
xor edx, edx
mov dword [ebp - 0x150], edx
nop dword [eax + eax]
mov eax, dword [edi + 0xbc]
mov edx, dword [ebp - 0x16c]
mov edi, dword [edi + 0x94]
movss xmm0, dword [ecx + 0x34]
movss dword [ebp - 0x11c], xmm0
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x190], eax
movss xmm1, dword [edx + edi + 0x10]
comiss xmm0, xmm1
ja 0x421a7a
movss xmm0, dword [ecx + 0x38]
minss xmm0, xmm1
movss dword [ebp - 0x11c], xmm0
ucomiss xmm1, xmm0
movaps xmm3, xmm2
lahf
test ah, 0x44
jnp 0x421aa6
cmp byte [ecx + 0x1c], 0
movaps xmm3, xmm0
subss xmm3, xmm1
mulss xmm3, xmm4
je 0x421aa2
cvttss2si eax, xmm3
movd xmm3, eax
cvtdq2ps xmm3, xmm3
addss xmm3, xmm2
movd xmm0, dword [esi + 0x1c]
movss xmm2, dword [0x5056d0]
cvtdq2ps xmm0, xmm0
movzx eax, word [edx + edi]
movaps xmm1, xmm2
divss xmm1, xmm0
movd xmm0, dword [esi + 0x20]
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movd xmm0, eax
movzx eax, word [edx + edi + 2]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x158], xmm0
movd xmm0, eax
movzx eax, word [edx + edi + 4]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [ebp - 0x180], xmm0
movd xmm0, eax
movzx eax, word [edx + edi + 6]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x17c], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [ebp - 0x1c8], xmm0
movss xmm0, dword [edx + edi + 8]
addss xmm0, xmm6
addss xmm0, xmm3
movss dword [ebp - 0x18c], xmm0
movss xmm0, dword [edx + edi + 0xc]
addss xmm0, xmm6
addss xmm0, xmm5
movss dword [ebp - 0x188], xmm0
movss xmm0, dword [edx + edi + 0x14]
addss xmm0, xmm6
addss xmm0, xmm3
movss dword [ebp - 0x184], xmm0
movss xmm0, dword [edx + edi + 0x18]
mov edi, dword [ebp - 0x168]
addss xmm0, xmm6
mov ecx, edi
mov eax, dword [edi]
addss xmm0, xmm5
inc eax
push eax
movss dword [ebp - 0x138], xmm0
call fcn.00423790
mov eax, dword [edi]
mov edi, dword [edi + 8]
movss xmm0, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0x13c]
lea edx, [eax + eax*4]
movss xmm4, dword [0x5056a4]
mov eax, dword [ebp - 0x190]
movss dword [edi + edx*8 - 0x20], xmm0
movss xmm0, dword [ebp - 0x188]
movss dword [edi + edx*8 - 0x1c], xmm0
movss xmm0, dword [ebp - 0x184]
movss dword [edi + edx*8 - 0x18], xmm0
movss xmm0, dword [ebp - 0x138]
movss dword [edi + edx*8 - 0x14], xmm0
movss xmm0, dword [ebp - 0x158]
movss dword [edi + edx*8 - 0x10], xmm0
movss xmm0, dword [ebp - 0x180]
movss dword [edi + edx*8 - 0xc], xmm0
movss xmm0, dword [ebp - 0x17c]
movss dword [edi + edx*8 - 8], xmm0
movss xmm0, dword [ebp - 0x1c8]
movss dword [edi + edx*8 - 4], xmm0
movss xmm0, dword [ebp - 0x11c]
mov word [edi + edx*8 - 0x28], ax
mov eax, dword [ecx]
addss xmm0, dword [eax + 0x20]
movss dword [edi + edx*8 - 0x24], xmm0
mov eax, dword [ecx]
cmp byte [eax + 0x1c], 0
je 0x421c54
addss xmm0, xmm4
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + edx*8 - 0x24], xmm0
mov eax, dword [ebp - 0x124]
xorps xmm6, xmm6
add dword [ebp - 0x150], 0x1c
movss xmm2, dword [ebp - 0x1cc]
movss xmm5, dword [ebp - 0x174]
mov byte [eax + 0x46], 1
mov eax, dword [ebp - 0x12c]
movss xmm0, dword [edi + edx*8 - 4]
subss xmm0, dword [edi + edx*8 - 0xc]
mov eax, dword [eax]
movd xmm1, dword [eax + 0x20]
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm0
movss xmm0, dword [edi + edx*8 - 8]
subss xmm0, dword [edi + edx*8 - 0x10]
addss xmm1, dword [0x5056e8]
mov edx, dword [ebp - 0x124]
mov edi, dword [ebp - 0x140]
cvttss2si ecx, xmm1
movd xmm1, dword [eax + 0x1c]
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm0
addss xmm1, dword [0x5056e8]
cvttss2si eax, xmm1
imul ecx, eax
mov eax, dword [ebp - 0x16c]
inc eax
mov dword [ebp - 0x16c], eax
add dword [edx + 0x54], ecx
mov ecx, dword [ebp - 0x128]
cmp eax, dword [edi + 0xa4]
jl 0x421a30
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x130]
add edi, 0xc4
add ecx, 0x78
sub eax, 1
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x120], eax
jne 0x421840
mov eax, dword [ebp - 0x154]
test eax, eax
jle 0x421da3
mov edi, dword [ebp - 0x164]
mov esi, dword [ebp - 0x144]
add edi, 0xb4
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x421d67
mov eax, dword [0x513c00]
test eax, eax
je 0x421d5b
dec dword [eax + 0x374]
push ecx
call esi
mov eax, dword [ebp - 0x154]
add esp, 4
mov ecx, dword [edi]
test ecx, ecx
je 0x421d88
mov eax, dword [0x513c00]
test eax, eax
je 0x421d7c
dec dword [eax + 0x374]
push ecx
call esi
mov eax, dword [ebp - 0x154]
add esp, 4
add edi, 0xc4
mov byte [ebp - 4], 7
sub eax, 1
mov dword [ebp - 0x154], eax
jne 0x421d45
mov esi, dword [ebp - 0x15c]
mov ecx, esi
call fcn.00421e70
mov byte [ebp - 0x145], 1
mov ecx, dword [ebp - 0x14c]
test ecx, ecx
je 0x421dd8
mov eax, dword [0x513c00]
test eax, eax
je 0x421dca
dec dword [eax + 0x374]
mov esi, dword [ebp - 0x144]
push ecx
call esi
add esp, 4
jmp 0x421dde
mov esi, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x134]
test ecx, ecx
je 0x421dfd
mov eax, dword [0x513c00]
test eax, eax
je 0x421df7
dec dword [eax + 0x374]
push ecx
call esi
add esp, 4
mov edi, dword [ebp - 0x160]
test edi, edi
je 0x421e24
mov eax, dword [0x513c00]
test eax, eax
je 0x421e16
dec dword [eax + 0x374]
mov esi, dword [ebp - 0x144]
push edi
call esi
add esp, 4
jmp 0x421e2a
mov esi, dword [ebp - 0x144]
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x421e4a
mov ecx, dword [0x513c00]
test ecx, ecx
je 0x421e44
dec dword [ecx + 0x374]
push eax
call esi
add esp, 4
mov al, byte [ebp - 0x145]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a1871
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret