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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b8
mov eax, dword [0x44300c]
xor eax, esp
mov dword [esp + 0x1b4], eax
push esi
mov esi, ecx
push edi
mov dword [esp + 0x3c], esi
cmp dword [esi + 0x458], 0
jge 0x420950
test byte [esi + 4], 2
lea eax, [esp + 0x7c]
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esi + 0x40]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
push eax
mov dword [esp + 0x80], 0x1b00d9
je 0x420941
mov dword [esp + 0x80], 0x20002
call fcn.004241c0
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x458], eax
cmp dword [esi + 0x45c], 0
jge 0x4209c3
test byte [esi + 4], 4
jne 0x4209c3
lea eax, [esp + 0x7c]
mov dword [esp + 0x80], 0xffffffff
push eax
lea ecx, [esi + 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
mov dword [esp + 0x80], 0x400041
call fcn.004241c0
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x45c], 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 [esp + 0x34], edx
test ecx, ecx
je 0x420a1e
mov eax, dword [0x4598f8]
test eax, eax
je 0x420a14
dec dword [eax + 0x370]
push ecx
call edx
mov edx, dword [esp + 0x38]
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x420a3a
mov eax, dword [0x4598f8]
test eax, eax
je 0x420a34
dec dword [eax + 0x370]
push ecx
call edx
add esp, 4
mov ecx, dword [esi + 0x4c]
xor edi, edi
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x68], edx
test ecx, ecx
jle 0x420aa0
cmp ecx, 8
mov eax, ecx
mov ecx, 8
cmovl eax, ecx
test eax, eax
jle 0x420aa0
mov ecx, dword [0x4598f8]
test ecx, ecx
je 0x420a8c
inc dword [ecx + 0x370]
imul eax, eax, 0xc4
push eax
call edx
mov edx, dword [esp + 0x6c]
add esp, 4
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x44], eax
test eax, eax
jle 0x420add
cmp eax, 8
mov ecx, eax
mov eax, 8
cmovl ecx, eax
test ecx, ecx
jle 0x420add
mov eax, dword [0x4598f8]
test eax, eax
je 0x420acb
inc dword [eax + 0x370]
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call edx
add esp, 4
mov dword [esp + 0x4c], eax
mov edi, eax
imul ecx, dword [esp + 0x48], 0xc4
push ecx
push 0
push dword [esp + 0x48]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x50]
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 [esp + 0x28], 0
cmp dword [esi + 0x4c], 0
jle 0x420c41
mov edx, dword [esp + 0x40]
xor eax, eax
add edx, 0xa4
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edx
mov ecx, dword [esi + 0x54]
mov dword [edx - 4], 0xffffffff
add ecx, eax
xor edx, edx
mov dword [esp + 0x1c], ecx
cmp dword [esi + 0x34], edx
jle 0x420c93
or eax, 0xffffffff
nop
cmp eax, 0xffffffff
jne 0x420b81
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x3c]
mov eax, dword [eax + 0x74]
cmp eax, dword [ecx + edx*4]
mov eax, dword [esp + 0x10]
jne 0x420b6f
mov dword [eax - 4], edx
mov eax, edx
jmp 0x420b72
mov eax, dword [eax - 4]
inc edx
cmp edx, dword [esi + 0x34]
jl 0x420b50
cmp eax, 0xffffffff
je 0x420c93
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.0041d1e0
mov ecx, dword [esp + 0x10]
mov edx, esi
add ecx, 0xffffff5c
push eax
mov dword [esp + 0x10], ecx
call fcn.004171b0
add esp, 4
test eax, eax
je 0x420c93
mov eax, dword [esp + 0xc]
mov esi, 0x43e900
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 0x30]
test eax, eax
cmovne esi, eax
mov dword [edx - 8], esi
cmp word [esi], 0
je 0x420c00
movzx eax, word [esi + 2]
test ax, ax
je 0x420bfc
mov ecx, eax
cmp dword [edx], ecx
cmovge ecx, dword [edx]
add esi, 4
mov dword [edx], ecx
cmp word [esi], 0
jne 0x420be1
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x38]
inc dword [edi + ecx*8]
mov ecx, dword [edx]
mov eax, dword [esp + 0x24]
cmp dword [edi + esi*8 + 4], ecx
cmovge ecx, dword [edi + esi*8 + 4]
add edx, 0xc4
mov dword [edi + esi*8 + 4], ecx
add eax, 0x78
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x3c]
inc ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
cmp ecx, dword [esi + 0x4c]
jl 0x420b30
mov eax, dword [esp + 0x48]
xor esi, esi
mov dword [esp + 0x24], esi
test eax, eax
jle 0x420fb6
mov esi, dword [esp + 0x40]
add esi, 0xa8
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], esi
mov eax, dword [esi - 8]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi - 4]
add ecx, 0x20
sar ecx, 5
mov dword [esp + 0xc], ecx
cmp ecx, eax
jle 0x420cb6
test eax, eax
je 0x420c9d
cdq
sub eax, edx
mov edx, eax
sar edx, 1
add edx, dword [esi + 8]
jmp 0x420ca2
mov byte [esp + 0x33], 0
jmp 0x421dd9
mov edx, 8
cmp edx, ecx
mov eax, ecx
lea ecx, [esi + 4]
cmovg eax, edx
push eax
call fcn.004159f0
mov ecx, dword [esp + 0xc]
lea eax, [ecx*4]
mov dword [esi + 4], ecx
push eax
push 0
push dword [esi + 0xc]
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [edx*8 + 0xc]
add eax, edi
mov dword [esp + 0x1c], eax
cmp dword [eax], 0
jne 0x420d4d
mov ecx, dword [edi + edx*8 + 4]
mov edx, dword [eax + 4]
add ecx, 0x20
sar ecx, 5
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], edx
cmp ecx, edx
jle 0x420d2e
test edx, edx
je 0x420d10
mov eax, edx
cdq
sub eax, edx
mov edx, eax
sar edx, 1
add edx, dword [esp + 0xc]
jmp 0x420d15
mov edx, 8
cmp edx, ecx
mov eax, ecx
mov ecx, dword [esp + 0x1c]
cmovg eax, edx
push eax
call fcn.004159f0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
lea eax, [ecx*4]
push eax
mov eax, dword [esp + 0x20]
push 0
push dword [eax + 8]
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esi - 0xc]
mov dword [esp + 0x1c], eax
movzx ecx, word [eax]
test cx, cx
je 0x420e22
movzx eax, word [eax + 2]
test ax, ax
je 0x420e1a
movzx edi, cx
cmp edi, eax
ja 0x420dff
mov eax, dword [esp + 0x4c]
mov esi, edi
mov ecx, edi
sar esi, 5
and ecx, 0x1f
mov dword [esp + 0xc], ecx
mov edx, dword [eax + edx*8 + 0x14]
mov eax, 1
shl eax, cl
test dword [edx + esi*4], eax
jne 0x420dea
mov ecx, dword [esp + 0x2c]
mov edx, edi
lea ecx, [ecx - 0xa8]
call fcn.00417680
test eax, eax
je 0x420dea
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x4c]
inc dword [eax]
inc dword [edx + ecx*8 + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0xc]
mov eax, dword [ecx + esi*4]
bts eax, edx
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
mov ecx, dword [eax + ecx*8 + 0x14]
mov eax, dword [ecx + esi*4]
bts eax, edx
inc dword [esp + 0x24]
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x1c]
inc edi
mov edx, dword [esp + 0x10]
movzx eax, word [eax + 2]
cmp edi, eax
jbe 0x420d78
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x1c], eax
movzx ecx, word [eax]
test cx, cx
jne 0x420d60
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x4c]
add esi, 0xc4
sub dword [esp + 0x38], 1
mov dword [esp + 0x2c], esi
jne 0x420c65
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
add esi, 0xb8
mov dword [esp + 0x2c], eax
nop dword [eax]
mov edi, dword [esi - 0x10]
cmp edi, dword [esi + 4]
jle 0x420eb9
mov eax, dword [0x4598f8]
test eax, eax
je 0x420e67
inc dword [eax + 0x370]
lea eax, [edi*4]
push eax
call dword [esp + 0x6c]
mov edx, dword [esi + 8]
add esp, 4
mov dword [esp + 0xc], eax
test edx, edx
je 0x420eb3
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 0x420ea7
mov eax, dword [0x4598f8]
test eax, eax
je 0x420ea7
dec dword [eax + 0x370]
push ecx
call dword [esp + 0x38]
mov eax, dword [esp + 0x10]
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 [esp + 0x28], edx
lea eax, [edx + eax*4]
mov dword [esp + 0x50], eax
cmp edx, eax
jae 0x420f6a
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov eax, dword [edx]
mov dword [esp + 0x20], eax
test eax, eax
je 0x420f52
xor edx, edx
mov edi, 1
mov dword [esp + 0x38], edx
test edi, eax
je 0x420f42
mov eax, dword [esi + 4]
and ecx, 0xffffffe0
add ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esi]
cmp ecx, eax
jne 0x420f2a
inc ecx
test eax, eax
je 0x420f16
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x420f1b
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.004159f0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0xc]
mov dword [eax + ecx*4], edx
inc dword [esi]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
inc edx
rol edi, 1
mov dword [esp + 0x38], edx
cmp edx, 0x20
jb 0x420ef1
mov edx, dword [esp + 0x28]
add edx, 4
add ecx, 0x20
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], ecx
cmp edx, dword [esp + 0x50]
jb 0x420ed8
mov ecx, dword [esi - 4]
test ecx, ecx
je 0x420f9d
mov eax, dword [0x4598f8]
mov dword [esi - 8], 0
mov dword [esi - 0xc], 0
test eax, eax
je 0x420f8e
dec dword [eax + 0x370]
push ecx
call dword [esp + 0x38]
add esp, 4
mov dword [esi - 4], 0
add esi, 0xc4
sub dword [esp + 0x2c], 1
jne 0x420e50
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x24]
cmp dword [esp + 0x44], 0
jle 0x421017
mov esi, dword [esp + 0x44]
lea eax, [edi + 0x14]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x38], eax
nop dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x421003
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x4598f8]
test eax, eax
je 0x420ff3
dec dword [eax + 0x370]
push ecx
call edi
mov eax, dword [esp + 0x3c]
add esp, 4
mov dword [eax], 0
add eax, 0x18
mov dword [esp + 0x38], eax
sub esi, 1
jne 0x420fd0
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x24]
test edi, edi
je 0x42103a
mov eax, dword [0x4598f8]
test eax, eax
je 0x42102a
dec dword [eax + 0x370]
push edi
call dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x4c], 0
xor edi, edi
mov dword [esp + 0x5c], 0
push esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x3c], edi
call fcn.00424060
test esi, esi
jle 0x4210a0
cmp esi, 8
mov ecx, esi
mov eax, 8
cmovl ecx, eax
test ecx, ecx
jle 0x4210a0
mov eax, dword [0x4598f8]
test eax, eax
je 0x421086
inc dword [eax + 0x370]
lea eax, [ecx*8]
sub eax, ecx
shl eax, 2
push eax
call dword [esp + 0x6c]
add esp, 4
mov dword [esp + 0x38], eax
mov edi, eax
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
shl ecx, 4
push ecx
push 0
push eax
mov dword [esp + 0x28], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esi*8]
sub eax, esi
shl eax, 2
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x54]
xor eax, eax
xor edx, edx
mov dword [esp + 0x30], eax
add esp, 0xc
mov dword [esp + 0x2c], edx
mov dword [esp + 0xac], eax
test ecx, ecx
jle 0x421480
mov edi, dword [esp + 0x40]
add edi, 0x98
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ecx
nop dword [eax + eax]
mov esi, dword [edi + 0x10]
test esi, esi
je 0x421466
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0x38]
shl eax, 4
add eax, dword [esp + 0x1c]
mov dword [edi - 4], eax
lea eax, [edx*8]
sub eax, edx
add dword [esp + 0x24], esi
add edx, esi
mov dword [esp + 0xac], edx
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x3c]
mov dword [edi], ecx
mov edx, dword [eax + 0x54]
add edx, dword [esp + 0x28]
mov dword [esp + 0x44], edx
mov eax, dword [edx + 0x10]
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 [0x43ef54]
jbe 0x4211e4
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 [esp + 0x10]
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 [esp + 0x10]
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx eax, dx
sub eax, esi
movd xmm0, eax
jmp 0x42120a
mov edx, dword [edi - 0x84]
mov eax, dword [edi - 0x94]
xorps xmm1, xmmword [0x43f5a0]
movzx ecx, byte [edx + eax + 0x12]
movzx eax, byte [edx + eax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
divss xmm1, xmm0
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x6c], eax
movss dword [esp + 0x20], xmm1
cmp dword [edi + 0x20], eax
jle 0x42145e
mov dword [esp + 0x50], eax
nop word [eax + eax]
mov edx, dword [edi + 0x28]
lea ecx, [edi - 0x98]
mov edx, dword [edx + eax*4]
call fcn.00417680
mov ecx, dword [esp + 0x44]
mov edx, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xb0], 0
movd xmm0, dword [ecx + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x70], xmm0
movd xmm0, dword [ecx + 0x18]
lea ecx, [esp + 0xb4]
push ecx
cvtdq2ps xmm0, xmm0
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [esp + 0x1c]
mulss xmm0, xmm1
push ecx
lea ecx, [edi - 0x98]
movss dword [esp + 0x68], xmm0
call fcn.00417aa0
add esp, 0x10
test eax, eax
jne 0x4212d0
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x58], esi
jmp 0x4213e1
xorps xmm0, xmm0
sub esp, 8
cvtsi2ss xmm0, dword [esp + 0x18]
mulss xmm0, dword [esp + 0x78]
addss xmm0, dword [0x43ef54]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [esp + 0x18]
movsd xmm0, qword [esp + 0x18]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [esp + 0xbc]
cvtpd2ps xmm0, xmm0
mulss xmm1, dword [esp + 0x60]
cvttss2si esi, xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [esp + 0x18]
movsd xmm0, qword [esp + 0x18]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [esp + 0xb0]
mov dword [esp + 0x18], eax
mulss xmm0, dword [esp + 0x78]
addss xmm0, dword [0x43ef54]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x78], xmm0
fld qword [esp + 0x78]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [esp + 0x78]
movsd xmm0, qword [esp + 0x78]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [esp + 0xb8]
cvtpd2ps xmm0, xmm0
mulss xmm1, dword [esp + 0x60]
cvttss2si eax, xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
mov dword [esp + 0x78], eax
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x60], xmm0
fld qword [esp + 0x60]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [esp + 0x60]
movsd xmm0, qword [esp + 0x60]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x54]
movzx edx, ax
mov eax, dword [esp + 0x44]
movss xmm1, dword [esp + 0x20]
mov cx, word [eax + 0x14]
mov eax, dword [edi - 4]
sub cx, si
mov esi, dword [esp + 0x50]
dec cx
add cx, dx
sub edx, dword [esp + 0x10]
add cx, word [esp + 0x70]
add edx, dword [esp + 0x58]
mov word [esi + eax + 4], cx
dec dx
mov eax, dword [esp + 0x44]
add dx, word [eax + 0x18]
mov eax, dword [edi - 4]
mov word [esi + eax + 6], dx
mov eax, dword [edi - 4]
mov edx, dword [esp + 0x2c]
movzx ecx, word [esi + eax + 6]
movzx eax, word [esi + eax + 4]
add esi, 0x10
imul ecx, eax
mov eax, dword [esp + 0x6c]
inc eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x6c], eax
add edx, ecx
mov dword [esp + 0x2c], edx
cmp eax, dword [edi + 0x20]
jl 0x421240
jmp 0x421462
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add dword [esp + 0x28], 0x78
add edi, 0xc4
sub dword [esp + 0xc], 1
mov dword [esp + 0x10], edi
jne 0x421110
mov edi, dword [esp + 0x3c]
mov eax, dword [edi + 0xc]
mov dword [edi + 0x20], 0
test eax, eax
jg 0x4214f4
movd xmm0, edx
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x4214ab
sqrtsd xmm0, xmm0
jmp 0x4214b0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cvtsd2ss xmm0, xmm0
cvttss2si eax, xmm0
inc eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x43f0f0]
jb 0x4214d0
mov eax, 0x1000
jmp 0x4214f4
comiss xmm0, dword [0x43f0ec]
jb 0x4214e0
mov eax, 0x800
jmp 0x4214f4
comiss xmm0, dword [0x43f0e0]
mov eax, 0x200
mov ecx, 0x400
cmovae eax, ecx
push 0x2c
mov dword [edi + 0x1c], eax
lea eax, [esp + 0x80]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [0x4598f8]
test eax, eax
je 0x421528
inc dword [eax + 0x370]
push 0x30
call dword [esp + 0x6c]
mov ecx, dword [0x4598f8]
mov esi, eax
mov eax, dword [esp + 0x10]
add esp, 4
sub eax, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov dword [esp + 0x54], eax
test ecx, ecx
je 0x421553
inc dword [ecx + 0x370]
shl eax, 3
push eax
call dword [esp + 0x6c]
add esp, 4
test esi, esi
je 0x4215e2
test eax, eax
je 0x4215d0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x84], edx
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x54]
push edx
push eax
mov dword [esp + 0xac], eax
mov eax, 0x8000
sub eax, ecx
mov dword [esp + 0x98], ecx
push eax
mov ecx, esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0xa4], 1
mov dword [esp + 0xa8], 1
mov dword [esp + 0xa0], 0
call fcn.00416390
add esp, 0xc
jmp 0x421609
mov eax, dword [0x4598f8]
test eax, eax
je 0x4215df
dec dword [eax + 0x370]
push esi
jmp 0x4215f7
test eax, eax
je 0x4215fe
mov ecx, dword [0x4598f8]
test ecx, ecx
je 0x4215f6
dec dword [ecx + 0x370]
push eax
call dword [esp + 0x38]
add esp, 4
mov eax, dword [esp + 0x80]
mov dword [esp + 0x10], eax
push dword [edi + 0x40]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], 0
call fcn.00424060
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
mov dword [esp + 0xc], eax
shl eax, 4
push eax
push 0
push edx
call sub.VCRUNTIME140.dll_memset
xor esi, esi
add esp, 0xc
cmp dword [edi + 0x40], esi
jle 0x42167c
mov edx, dword [esp + 0x60]
xor ecx, ecx
add edx, 6
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 0x421658
push dword [esp + 0x58]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x14]
call fcn.00416840
mov eax, dword [esp + 0x5c]
add esp, 4
test eax, eax
jle 0x4216e4
mov edx, dword [esp + 0x60]
xor esi, esi
add edx, 0xa
cmp dword [edx + 2], 0
je 0x4216d5
mov ecx, dword [edi + 0x48]
movzx eax, word [edx - 2]
mov word [esi + ecx + 4], ax
mov ecx, dword [edi + 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 + 0xc]
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 [esp + 0xc], eax
jne 0x4216a1
mov eax, dword [esp + 0x60]
test eax, eax
je 0x421704
mov ecx, dword [0x4598f8]
test ecx, ecx
je 0x4216fc
dec dword [ecx + 0x370]
push eax
call dword [esp + 0x38]
add esp, 4
mov esi, dword [esp + 0x48]
test esi, esi
jle 0x421785
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
add esi, 0xa8
mov dword [esp + 0x20], eax
mov eax, dword [esi]
test eax, eax
je 0x421774
mov edx, dword [esi - 0x14]
mov ecx, dword [esp + 0x10]
push eax
call fcn.00416840
xor ecx, ecx
add esp, 4
mov dword [esp + 0xc], ecx
cmp dword [esi], ecx
jle 0x421774
xor edx, edx
mov eax, dword [esi - 0x14]
cmp dword [eax + edx + 0xc], 0
je 0x421768
movzx ecx, word [eax + edx + 0xa]
movzx eax, word [eax + edx + 6]
add ecx, eax
cmp dword [edi + 0x20], ecx
cmovge ecx, dword [edi + 0x20]
mov dword [edi + 0x20], ecx
mov ecx, dword [esp + 0xc]
inc ecx
add edx, 0x10
mov dword [esp + 0xc], ecx
cmp ecx, dword [esi]
jl 0x421744
add esi, 0xc4
sub dword [esp + 0x20], 1
jne 0x421722
mov esi, dword [esp + 0x48]
test byte [edi + 4], 1
mov eax, dword [edi + 0x20]
jne 0x4217b3
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 [0x43efc0]
lea ecx, [eax + 1]
mov eax, dword [edi + 0x1c]
movaps xmm2, xmm1
mov dword [edi + 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 [0x4598f8]
movss dword [edi + 0x24], xmm2
movss dword [edi + 0x28], xmm1
test eax, eax
je 0x4217f9
inc dword [eax + 0x370]
push ecx
call dword [esp + 0x6c]
mov ecx, dword [edi + 0x1c]
add esp, 4
imul ecx, dword [edi + 0x20]
mov dword [edi + 0x14], eax
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x14]
add esp, 0xc
mov dword [esp + 0xa0], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x88], eax
test esi, esi
jle 0x4219d3
mov ecx, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 0x50], eax
mov edx, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x6c], esi
nop word [eax + eax]
mov esi, dword [edi + 0x54]
add esi, eax
cmp dword [ecx + 0xa8], 0
je 0x4219ac
push dword [ecx + 0x94]
lea eax, [ecx + 0x7c]
mov edx, ecx
push ecx
push eax
lea ecx, [esp + 0x88]
call fcn.0041cd30
movss xmm1, dword [esi + 0x44]
add esp, 0xc
ucomiss xmm1, dword [0x43efc0]
movss dword [esp + 0x54], xmm1
lahf
test ah, 0x44
jnp 0x421996
xor esi, esi
nop dword [eax]
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x43f570]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.00439590
movss xmm1, dword [esp + 0x54]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [esp + esi + 0xb8], dl
inc esi
cmp esi, 0x100
jb 0x4218a0
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x28], eax
mov edx, dword [ecx + 0x94]
cmp dword [ecx + 0xa8], eax
jle 0x42199a
lea ecx, [edx + 4]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
nop dword [eax]
cmp dword [ecx + 8], 0
je 0x42197e
mov eax, dword [edi + 0x1c]
movzx edx, word [ecx + 6]
movzx esi, word [ecx]
imul edx, eax
mov dword [esp + 0xc], eax
movzx eax, word [ecx + 4]
add edx, eax
add edx, dword [edi + 0x14]
movzx edi, word [ecx + 2]
test edi, edi
je 0x421972
mov eax, dword [esp + 0xc]
nop dword [eax]
xor ecx, ecx
test esi, esi
je 0x421967
nop word [eax + eax]
movzx eax, byte [ecx + edx]
mov al, byte [esp + eax + 0xb8]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x421950
mov eax, dword [esp + 0xc]
dec edi
add edx, eax
test edi, edi
jg 0x421940
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x3c]
inc eax
add ecx, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
cmp eax, dword [edx + 0xa8]
jl 0x421910
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x6c]
mov dword [ecx + 0x94], 0
add eax, 0x78
add ecx, 0xc4
sub edx, 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x6c], edx
jne 0x421850
mov esi, dword [esp + 0x80]
jmp 0x4219d7
mov esi, dword [esp + 0x10]
cmp dword [esp + 0xa4], 0
je 0x4219f0
mov eax, dword [0x4598f8]
test eax, eax
je 0x4219f0
dec dword [eax + 0x370]
push dword [esp + 0xa4]
call dword [esp + 0x38]
add esp, 4
test esi, esi
je 0x421a11
mov eax, dword [0x4598f8]
test eax, eax
je 0x421a11
dec dword [eax + 0x370]
push esi
mov esi, dword [esp + 0x38]
call esi
mov ecx, dword [esp + 0x20]
add esp, 4
test ecx, ecx
je 0x421a40
mov eax, dword [0x4598f8]
test eax, eax
je 0x421a32
dec dword [eax + 0x370]
push ecx
call esi
add esp, 4
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x421d8d
mov esi, dword [esp + 0x40]
xor ecx, ecx
add esi, 4
mov dword [esp + 0x44], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x50], eax
jmp 0x421a67
mov edi, dword [esp + 0x3c]
cmp dword [esi + 0xa4], 0
je 0x421d57
mov eax, dword [edi + 0x54]
mov edi, dword [esi + 0x18]
add eax, ecx
mov esi, dword [esi]
mov dword [esp + 0x20], eax
mov eax, dword [eax + 0x74]
movzx ecx, byte [edi + esi + 6]
movzx edx, byte [edi + esi + 7]
mov dword [esp + 0x24], eax
mov eax, 0x100
cwde
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 esi, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, 0x100
cwde
movsx ecx, cx
movss xmm1, dword [esi + 0x10]
imul ecx, eax
add dx, cx
movsx edi, dx
mov eax, edi
sub eax, dword [esp + 0xc]
cmp byte [esi + 0x3c], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [esp + 0x54], xmm1
jne 0x421b83
mov ecx, dword [esp + 0x24]
call fcn.00422420
mov edx, dword [esp + 0x24]
xorps xmm4, xmm4
mov eax, dword [esi + 0x10]
movd xmm1, edi
cvtdq2ps xmm1, xmm1
mov dword [edx + 0x10], eax
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword [edx + 0x34], esi
mov dword [edx + 0x30], ecx
comiss xmm1, xmm4
mulss xmm1, dword [esp + 0x54]
seta al
lea eax, [eax*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movd xmm1, dword [esp + 0xc]
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movd xmm2, eax
xor eax, eax
comiss xmm1, xmm4
mulss xmm1, dword [esp + 0x54]
seta al
cvtdq2ps xmm2, xmm2
lea eax, [eax*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edx + 0x44], xmm2
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
xor eax, eax
cvtdq2ps xmm0, xmm0
movss dword [edx + 0x48], xmm0
jmp 0x421b94
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
movzx eax, word [edx + 0x38]
movss xmm2, dword [edx + 0x44]
addss xmm2, dword [0x43ef90]
mov edi, dword [esp + 0x2c]
inc eax
mov word [edx + 0x38], ax
movss xmm7, dword [esi + 0x28]
movss dword [esp + 0xa8], xmm7
cmp dword [edi + 0xa4], 0
cvttss2si eax, xmm2
mov dword [esp + 0x28], 0
movd xmm6, eax
cvtdq2ps xmm6, xmm6
addss xmm6, dword [esi + 0x2c]
movss dword [esp + 0x54], xmm6
jle 0x421d09
xor esi, esi
movd xmm0, dword [ecx + 0x1c]
sub esp, 0x20
movss xmm1, dword [0x43efc0]
movss xmm3, dword [0x43efc0]
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, dword [ecx + 0x20]
mov ecx, dword [edi + 0x94]
cvtdq2ps xmm0, xmm0
movzx eax, word [esi + ecx]
divss xmm3, xmm0
movd xmm5, eax
movzx eax, word [esi + ecx + 2]
movss xmm0, dword [esi + ecx + 0x10]
cvtdq2ps xmm5, xmm5
movd xmm4, eax
movzx eax, word [esi + ecx + 4]
mulss xmm5, xmm1
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esi + ecx + 0x18]
movd xmm2, eax
movzx eax, word [esi + ecx + 6]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm4, xmm4
mulss xmm2, xmm1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, dword [edi + 0xbc]
mulss xmm4, xmm3
mulss xmm1, xmm3
movss xmm3, dword [esi + ecx + 8]
movss dword [esp + 0x18], xmm1
xorps xmm1, xmm1
addss xmm0, xmm1
movss dword [esp + 0x14], xmm2
movss dword [esp + 0x10], xmm4
addss xmm3, xmm1
movss dword [esp + 0xc], xmm5
addss xmm0, xmm6
addss xmm3, xmm7
movss dword [esp + 8], xmm0
movss xmm0, dword [esi + ecx + 0x14]
addss xmm0, xmm1
addss xmm0, xmm7
movss dword [esp + 4], xmm0
movss xmm0, dword [esi + ecx + 0xc]
mov ecx, dword [esp + 0x48]
addss xmm0, xmm1
movzx eax, word [eax + ecx*4]
mov ecx, edx
addss xmm0, xmm6
movss dword [esp], xmm0
push eax
push dword [esp + 0x44]
call fcn.004228e0
mov eax, dword [esp + 0x28]
add esi, 0x1c
movss xmm6, dword [esp + 0x54]
inc eax
movss xmm7, dword [esp + 0xa8]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
cmp eax, dword [edi + 0xa4]
jl 0x421be0
mov ecx, dword [esp + 0x44]
add edi, 0xc4
add ecx, 0x78
sub dword [esp + 0x50], 1
mov esi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x44], ecx
jne 0x421a63
mov esi, dword [esp + 0x40]
add esi, 0xb4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x421d5d
mov eax, dword [0x4598f8]
test eax, eax
je 0x421d4b
dec dword [eax + 0x370]
mov edi, dword [esp + 0x34]
push ecx
call edi
add esp, 4
jmp 0x421d61
mov edi, dword [esp + 0x2c]
jmp 0x421d0d
mov edi, dword [esp + 0x34]
mov ecx, dword [esi]
test ecx, ecx
je 0x421d7c
mov eax, dword [0x4598f8]
test eax, eax
je 0x421d76
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
add esi, 0xc4
sub dword [esp + 0x48], 1
jne 0x421d35
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
call fcn.00421ea0
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x33], 1
test ecx, ecx
je 0x421db8
mov eax, dword [0x4598f8]
test eax, eax
je 0x421db2
dec dword [eax + 0x370]
push ecx
call esi
add esp, 4
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x421dd5
mov eax, dword [0x4598f8]
test eax, eax
je 0x421dcf
dec dword [eax + 0x370]
push ecx
call esi
add esp, 4
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x421df8
mov eax, dword [0x4598f8]
test eax, eax
je 0x421dec
dec dword [eax + 0x370]
mov esi, dword [esp + 0x34]
push edi
call esi
add esp, 4
jmp 0x421dfc
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x421e1a
mov ecx, dword [0x4598f8]
test ecx, ecx
je 0x421e14
dec dword [ecx + 0x370]
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x1bc]
mov al, byte [esp + 0x33]
pop edi
pop esi
xor ecx, esp
call fcn.004384ec
mov esp, ebp
pop ebp
ret