Function at 0x40d0d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [0x563448]
mov dword [ebp - 0x18], edi
mov eax, dword [edi + 0x53a8]
lea ecx, [edi + 0x53b0]
sub eax, 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
js 0x40d168
lea ebx, [eax + eax*4]
shl ebx, 2
nop
mov edx, dword [ecx]
cmp dword [ebx + edx + 4], 7
jne 0x40d15b
mov esi, dword [edi + 0x53b0]
mov ecx, ebx
sub ecx, esi
mov eax, 0x66666667
add ecx, edx
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + ecx*4]
lea edx, [esi + eax*4]
mov eax, dword [edi + 0x53a8]
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [eax*4 - 0x14]
push eax
lea eax, [edx + 0x14]
push eax
push edx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 8]
lea ecx, [edi + 0x53b0]
add esp, 0xc
dec dword [edi + 0x53a8]
dec eax
sub ebx, 0x14
mov dword [ebp - 8], eax
test eax, eax
jns 0x40d100
jmp 0x40d16b
mov dword [ebp - 0xc], ecx
xor esi, esi
cmp dword [edi + 0x53a8], esi
jle 0x40d19a
xor ebx, ebx
mov eax, dword [ecx]
add eax, ebx
cmp dword [eax + 4], 0
jne 0x40d18e
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
mov ecx, dword [ebp - 0xc]
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x53a8]
jl 0x40d177
mov ecx, dword [0x563448]
mov eax, dword [edi + 0x3c8c]
mov dword [edi + 0x3c90], eax
cmp byte [ecx + 0x65], 0
je 0x40d1bc
test byte [ecx + 0xc], 2
jne 0x40d1bc
mov byte [ecx + 0x65], 0
mov edx, dword [ecx + 8]
test edx, 0x400
je 0x40d1df
mov eax, dword [ecx + 0xc]
and eax, 0x1400
cmp eax, 0x1400
je 0x40d1df
and edx, 0xfffffbff
mov dword [ecx + 8], edx
mov eax, dword [edi + 8]
mov esi, ecx
mov dword [edi + 0x3c8c], eax
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 4], eax
cmp byte [esi + 0x5370], 0
jne 0x40d253
mov eax, dword [esi + 0x20]
test eax, eax
je 0x40d24c
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
mov ecx, eax
call fcn.00408ff0
mov ecx, eax
add esp, 8
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x40d246
mov edx, dword [ebp - 8]
test edx, edx
je 0x40d230
call fcn.0041d680
mov ecx, dword [ebp - 0x14]
mov eax, dword [0x563448]
test eax, eax
je 0x40d23f
dec dword [eax + 0xb0]
push ecx
call dword [ebp - 4]
add esp, 4
mov ecx, dword [0x563448]
mov byte [esi + 0x5370], 1
movss xmm0, dword [esi + 0x5374]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x40d2d6
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5374], xmm0
jb 0x40d2d6
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x40d2c5
mov dword [ecx + 0x5374], 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
call fcn.0041d8a0
mov edx, 0x4881f4
mov dword [ebp - 0x14], eax
mov ecx, ebx
call fcn.00408f20
mov ebx, eax
test ebx, ebx
je 0x40d2cc
push ebx
push dword [ebp - 8]
push 1
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
jmp 0x40d2cc
mov byte [esi + 0x98], 1
mov dword [esi + 0x5374], 0
movss xmm0, dword [edi + 0x18]
xor eax, eax
inc dword [edi + 0x3ea0]
cvtps2pd xmm0, xmm0
mov byte [edi + 0x3eb0], 1
mov word [edi + 0x5302], ax
mov dword [edi + 0x3ef8], eax
addsd xmm0, qword [edi + 0x3e98]
movsd qword [edi + 0x3e98], xmm0
mov ecx, dword [edi + 0x5318]
test ecx, ecx
jns 0x40d330
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x5314]
call fcn.00428ee0
mov dword [edi + 0x5314], 0
mov ecx, 0x78
mov eax, dword [edi + 0x5614]
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [edi + eax*4 + 0x5434]
addss xmm0, dword [edi + 0x561c]
movss dword [edi + 0x561c], xmm0
movss dword [edi + eax*4 + 0x5434], xmm1
mov eax, dword [edi + 0x5614]
inc eax
movss xmm1, dword [edi + 0x561c]
cdq
idiv ecx
mov eax, dword [edi + 0x5618]
movss xmm0, dword [0x557a4c]
inc eax
cmp eax, ecx
mov dword [edi + 0x5614], edx
movss dword [ebp - 8], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x557824]
mov dword [edi + 0x5618], ecx
jbe 0x40d3c6
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x5578c0]
divss xmm0, xmm1
movss dword [edi + 0x9c], xmm0
call fcn.0041e5e0
mov eax, dword [edi + 0x40]
mov ebx, dword [0x563448]
mov byte [eax + 0x18], 1
mov esi, dword [ebx + 0x4c]
test esi, esi
jne 0x40d3ef
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + 0x44]
mov esi, dword [eax]
movss xmm2, dword [0x5578c0]
mov eax, dword [ebx + 0x3f04]
movaps xmm0, xmm2
mov dword [ebx + 0x3c94], esi
movss xmm1, dword [esi + 0x10]
mulss xmm1, dword [ebx + 0x44]
mulss xmm1, dword [esi + 0x44]
maxss xmm0, xmm1
movss dword [ebx + 0x3c9c], xmm0
test eax, eax
je 0x40d449
mulss xmm0, dword [eax + 0x27c]
mulss xmm0, dword [eax + 0x280]
mov eax, dword [eax + 0x328]
test eax, eax
je 0x40d44c
mulss xmm0, dword [eax + 0x27c]
jmp 0x40d44c
xorps xmm0, xmm0
movss xmm7, dword [ebp - 8]
movss xmm4, dword [0x557a84]
movaps xmm6, xmm7
movss dword [ebx + 0x3c98], xmm0
movaps xmm5, xmm4
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [ebx + 0x3ca0], eax
lea eax, [edx + 0x60]
mov dword [ebx + 0x3ca4], ecx
mov dword [ebx + 0x3e90], eax
mov dword [ebx + 0x3ca8], esi
movss dword [ebx + 0x3cac], xmm0
mov edx, dword [edi + 0x40dc]
test edx, edx
jle 0x40d4ef
mov ecx, dword [edi + 0x40e4]
mov eax, dword [ecx]
movss xmm3, dword [eax + 8]
comiss xmm7, xmm3
movss xmm2, dword [eax + 0xc]
movaps xmm0, xmm3
addss xmm0, dword [eax + 0x10]
movaps xmm1, xmm2
addss xmm1, dword [eax + 0x14]
jbe 0x40d4c7
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x40d4cf
movaps xmm6, xmm2
comiss xmm0, xmm4
jbe 0x40d4d7
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x40d4df
movaps xmm5, xmm1
add ecx, 4
sub edx, 1
jne 0x40d4a3
movss xmm2, dword [0x5578c0]
mov eax, dword [edi + 0x3914]
movss xmm1, dword [edi + 0x3918]
movss dword [ebp - 0x28], xmm7
movss dword [ebp - 0x24], xmm6
movss dword [ebp - 0x20], xmm4
movss dword [ebp - 0x1c], xmm5
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x3cb0], eax
movups xmmword [edi + 0x3cb8], xmm0
movss xmm0, dword [edi + 0x3cb4]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40d61b
movss dword [edi + 0x3cb4], xmm1
xor esi, esi
mov ebx, 0x200
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x40d5c6
movss xmm1, dword [edi + 0x3cb4]
minss xmm1, xmm0
divss xmm1, xmm0
movaps xmm0, xmm2
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_acos_precise
movss xmm1, dword [0x55792c]
sub esp, 8
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x20], xmm0
fld qword [ebp - 0x20]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x20]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
and eax, 0xfffffffe
cmp eax, 4
jge 0x40d5bc
mov eax, 4
jmp 0x40d5cb
cmp eax, 0x200
cmovg eax, ebx
jmp 0x40d5cb
mov eax, 0x30
movss xmm2, dword [0x5578c0]
mov byte [esi + edi + 0x3e50], al
inc esi
cmp esi, 0x40
jl 0x40d546
movsd xmm0, qword [0x5578d8]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x5578c0]
cvtsd2ss xmm0, xmm0
mov ebx, dword [0x563448]
subss xmm1, xmm0
movss xmm0, dword [edi + 0x3cb4]
divss xmm0, xmm1
movss dword [edi + 0x3e4c], xmm0
xor edx, edx
mov dword [edi + 0x3cc8], 0
cmp byte [edi + 0x3910], dl
je 0x40d63e
mov dword [edi + 0x3cc8], 1
mov edx, 1
cmp byte [edi + 0x3911], 0
mov ecx, edx
je 0x40d660
mov eax, dword [edi + 0x3c94]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x40d660
or ecx, 2
mov dword [edi + 0x3cc8], ecx
cmp byte [edi + 0x3912], 0
je 0x40d672
or ecx, 4
mov dword [edi + 0x3cc8], ecx
test byte [edi + 0xc], 8
je 0x40d681
or ecx, 8
mov dword [edi + 0x3cc8], ecx
xor esi, esi
cmp dword [edi + 0x40dc], esi
jle 0x40d6b9
nop dword [eax + eax]
mov eax, dword [edi + 0x40e4]
push 0x30
push 0
mov eax, dword [eax + esi*4]
mov dword [eax + 0x30], 0
sub eax, 0xffffff80
push eax
call sub.VCRUNTIME140.dll_memset
inc esi
add esp, 0xc
cmp esi, dword [edi + 0x40dc]
jl 0x40d690
cmp byte [edi + 0x4294], 0
je 0x40d6ed
mov eax, dword [edi + 0x42ac]
cmp eax, dword [edi + 0x3f40]
jne 0x40d6ed
cmp dword [ebx + 0x3f40], eax
jne 0x40d6de
mov dword [ebx + 0x3f44], eax
cmp dword [ebx + 0x3f68], eax
jne 0x40d6ed
mov byte [ebx + 0x3f6c], 1
cmp dword [edi + 0x3f30], 0
lea eax, [edi + 0x3f2c]
mov ecx, dword [eax]
jne 0x40d70a
mov dword [edi + 0x3f38], 0
jmp 0x40d71a
mov edx, ecx
mov esi, eax
test ecx, ecx
je 0x40d728
cmp dword [edi + 0x3f40], ecx
jne 0x40d728
mov dword [edi + 0x3f3c], 0
mov edx, ecx
mov esi, eax
movss xmm1, dword [edi + 0x18]
test edx, edx
je 0x40d75f
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3f38]
movss dword [edi + 0x3f38], xmm0
cmp dword [edi + 0x3f40], edx
je 0x40d75f
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3f3c]
movss dword [edi + 0x3f3c], xmm0
mov al, byte [edi + 0x3f35]
movaps xmm2, xmm1
mov byte [edi + 0x3f36], al
mov eax, dword [edi + 0x3f40]
mov dword [edi + 0x3f30], edx
mov dword [esi], 0
mov word [edi + 0x3f34], 0
mov byte [edi + 0x3f37], 0
test eax, eax
je 0x40d7b2
cmp dword [edi + 0x3f44], eax
je 0x40d7b2
cmp dword [edi + 0x3f68], eax
jne 0x40d7b2
xor edx, edx
xor ecx, ecx
call fcn.0040b5c0
movss xmm2, dword [edi + 0x18]
mov ecx, dword [edi + 0x3f40]
test ecx, ecx
je 0x40d7cf
movaps xmm0, xmm2
addss xmm0, dword [edi + 0x3f48]
movss dword [edi + 0x3f48], xmm0
mov eax, dword [edi + 0x3f5c]
addss xmm2, dword [edi + 0x3f78]
mov dword [edi + 0x3f70], eax
mov al, byte [edi + 0x3f50]
mov byte [edi + 0x3f6d], al
mov eax, dword [edi + 0x5290]
movss dword [edi + 0x3f78], xmm2
mov dword [edi + 0x3f68], ecx
mov dword [edi + 0x3f44], 0
mov byte [edi + 0x3f51], 0
mov byte [edi + 0x3f6c], 0
mov byte [edi + 0x3f4c], 0
test eax, eax
je 0x40d834
cmp ecx, eax
je 0x40d834
mov dword [edi + 0x5290], 0
test ecx, ecx
jne 0x40d854
mov dword [edi + 0x3f80], ecx
xorps xmm0, xmm0
mov dword [edi + 0x3f84], ecx
movups xmmword [edi + 0x3f88], xmm0
mov dword [edi + 0x3f98], ecx
mov eax, dword [edi + 0x42f8]
mov dword [edi + 0x42fc], eax
mov dword [edi + 0x42f8], 0
mov dword [edi + 0x42f4], 0x7f7fffff
mov word [edi + 0x4295], 0
mov dword [edi + 0x4304], 0
mov ecx, dword [edi + 0x384c]
test ecx, ecx
jns 0x40d8ad
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x3848]
call fcn.00428f60
mov dword [edi + 0x3848], 0
mov cl, byte [edi + 0x62]
call fcn.00416be0
call fcn.0040c3f0
call fcn.0041a350
call fcn.0040c580
test byte [edi + 8], 0x40
jne 0x40d8fd
cmp dword [edi + 0x5348], 0
jg 0x40d8ea
cmp dword [edi + 0x5354], 0
jle 0x40d9cd
mov dl, 1
call fcn.004266b0
xor ecx, ecx
call fcn.004263a0
jmp 0x40d9cd
cmp byte [edi + 0x58], 0
je 0x40d93a
xor esi, esi
cmp dword [edi + 0x5348], esi
jle 0x40d93a
nop dword [eax]
mov eax, dword [edi + 0x5350]
mov ecx, dword [eax + esi*8 + 4]
test ecx, ecx
je 0x40d931
cmp dword [ecx + 0x18], 0
jne 0x40d931
cmp dword [ecx + 0x1c], 0
je 0x40d931
mov ecx, dword [ecx]
call fcn.004263a0
inc esi
cmp esi, dword [edi + 0x5348]
jl 0x40d910
cmp byte [edi + 0x536c], 0
je 0x40d97c
xor ecx, ecx
call fcn.0041d8a0
xor dl, dl
call fcn.004266b0
xor ecx, ecx
call fcn.004263a0
push dword [edi + 0x5360]
mov edx, dword [edi + 0x5368]
mov ecx, edi
call fcn.00420900
add esp, 4
mov ecx, edi
call fcn.00420a70
mov byte [edi + 0x536c], 0
xor ebx, ebx
cmp dword [edi + 0x5354], ebx
jle 0x40d9cd
xor esi, esi
nop dword [eax + eax]
mov eax, dword [edi + 0x535c]
cmp dword [eax + esi], 2
jne 0x40d9c1
mov edx, dword [eax + esi + 0x1c]
test edx, edx
je 0x40d9b2
push 1
mov ecx, edi
call fcn.00420ef0
add esp, 4
jmp 0x40d9c1
mov edx, dword [eax + esi + 0x20]
test edx, edx
je 0x40d9c1
mov ecx, edi
call fcn.00421050
inc ebx
add esi, 0x24
cmp ebx, dword [edi + 0x5354]
jl 0x40d990
call fcn.0040ce40
call fcn.0040bf40
mov eax, dword [0x563448]
mov edx, dword [eax + 0x40c0]
sub edx, 1
js 0x40da11
mov eax, dword [eax + 0x40c8]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x40da09
test dword [ecx + 8], 0x8000000
jne 0x40dabf
sub eax, 0x28
sub edx, 1
jns 0x40d9f6
cmp dword [edi + 0x4274], 0
xorps xmm6, xmm6
je 0x40da2e
movss xmm0, dword [edi + 0x4284]
comiss xmm0, xmm6
ja 0x40dac2
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x557960]
movss xmm1, dword [edi + 0x428c]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [edi + 0x428c], xmm1
movups xmm0, xmmword [edi + 0x5320]
mov dword [edi + 0x4290], 0
mov dword [edi + 0x5628], 0xffffffff
mov dword [edi + 0x5624], 0xffffffff
mov dword [edi + 0x5620], 0xffffffff
movups xmmword [edi + 0x5330], xmm0
mov byte [edi + 0x5320], 0
call fcn.0040c980
cmp byte [edi + 0x3eb3], 0
jne 0x40dae4
movss xmm0, dword [edi + 0x68]
comiss xmm6, xmm0
ja 0x40dae4
movsd xmm1, qword [edi + 0x3e98]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [ebp - 8], xmm1
jmp 0x40dae9
xorps xmm6, xmm6
movss xmm1, dword [edi + 0x18]
mulss xmm1, dword [0x557954]
addss xmm1, dword [edi + 0x428c]
minss xmm1, dword [0x5578c0]
jmp 0x40da4b
movss xmm1, dword [ebp - 8]
xor ebx, ebx
cmp dword [edi + 0x3ebc], ebx
je 0x40dc7f
nop word [eax + eax]
mov eax, dword [edi + 0x3ec4]
xor ecx, ecx
mov esi, dword [eax + ebx*4]
mov al, byte [esi + 0xc3]
mov byte [esi + 0xc4], al
mov word [esi + 0xd0], cx
mov byte [esi + 0xc3], cl
mov byte [esi + 0xc5], cl
test al, al
jne 0x40dc6d
cmp byte [esi + 0x378], cl
jne 0x40dc6d
comiss xmm1, dword [esi + 0x25c]
jbe 0x40dc6d
mov ecx, dword [esi + 0x288]
mov byte [esi + 0x378], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x370], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x374], eax
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x40dba8
mov eax, dword [0x563448]
mov dword [esi + 0x100], 0
mov dword [esi + 0xfc], 0
test eax, eax
je 0x40db97
dec dword [eax + 0xb0]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x104], 0
mov ecx, dword [esi + 0x288]
call fcn.00431270
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x40dbf1
mov eax, dword [0x563448]
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test eax, eax
je 0x40dbe0
dec dword [eax + 0xb0]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x1a4], 0
mov ecx, dword [esi + 0x1cc]
test ecx, ecx
je 0x40dc2f
mov eax, dword [0x563448]
mov dword [esi + 0x1c8], 0
mov dword [esi + 0x1c4], 0
test eax, eax
je 0x40dc1e
dec dword [eax + 0xb0]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x1cc], 0
mov ecx, dword [esi + 0x1d8]
test ecx, ecx
je 0x40dc6d
mov eax, dword [0x563448]
mov dword [esi + 0x1d4], 0
mov dword [esi + 0x1d0], 0
test eax, eax
je 0x40dc5c
dec dword [eax + 0xb0]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x1d8], 0
movss xmm1, dword [ebp - 8]
inc ebx
cmp ebx, dword [edi + 0x3ebc]
jne 0x40db00
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x4368], ecx
jle 0x40ddcd
xor edx, edx
xorps xmm1, xmm1
mov dword [ebp - 0x14], edx
nop dword [eax + eax]
mov eax, dword [edi + 0x4370]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x40ddb4
movss xmm1, dword [ebp - 8]
comiss xmm1, xmm0
jbe 0x40ddb1
mov esi, dword [edi + 0x4350]
mov ebx, dword [0x563448]
add esi, edx
mov dword [ebp - 0x1c], ebx
mov dword [esi + 0x1a4], 0
mov eax, dword [esi + 0x1a0]
test eax, eax
je 0x40dd16
mov dword [esi + 0x19c], 0
mov dword [esi + 0x198], 0
test ebx, ebx
je 0x40dd05
dec dword [ebx + 0xb0]
push eax
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x1a0], 0
mov byte [esi + 0x1cc], 1
mov ecx, dword [esi + 0x170]
test ecx, ecx
je 0x40dd5b
mov eax, dword [0x563448]
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
test eax, eax
je 0x40dd4a
dec dword [eax + 0xb0]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x170], 0
xor edx, edx
mov byte [esi + 0x1d6], 1
cmp dword [esi + 0x54], edx
jle 0x40dd87
xor ecx, ecx
or ebx, 0xffffffff
nop
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x68]
inc edx
mov word [ecx + eax - 0x18], bx
cmp edx, dword [esi + 0x54]
jl 0x40dd70
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
sub esi, dword [ebx + 0x4350]
mov eax, 0x22b63cbf
imul esi
mov eax, dword [ebx + 0x4370]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 0x14]
mov dword [eax + ecx*4], 0xbf800000
mov ecx, dword [ebp - 0x10]
xorps xmm1, xmm1
inc ecx
add edx, 0x1d8
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
cmp ecx, dword [edi + 0x4368]
jl 0x40dca0
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x433c], eax
jle 0x40de22
xor esi, esi
xorps xmm1, xmm1
nop
mov ebx, dword [edi + 0x4344]
movss xmm0, dword [ebx + esi + 4]
comiss xmm0, xmm1
jb 0x40de13
movss xmm1, dword [ebp - 8]
comiss xmm1, xmm0
jbe 0x40de10
lea ecx, [esi + 0x10]
add ecx, ebx
call fcn.00433d50
mov eax, dword [ebp - 0x14]
mov dword [ebx + esi + 4], 0xbf800000
xorps xmm1, xmm1
inc eax
add esi, 0x68
mov dword [ebp - 0x14], eax
cmp eax, dword [edi + 0x433c]
jl 0x40dde0
cmp byte [edi + 0x3eb3], 0
je 0x40deb7
mov esi, dword [0x563448]
mov eax, dword [esi + 0x40b0]
test eax, eax
je 0x40de72
mov dword [esi + 0x40ac], 0
mov dword [esi + 0x40a8], 0
test esi, esi
je 0x40de5d
dec dword [esi + 0xb0]
mov ebx, dword [ebp - 4]
push eax
call ebx
add esp, 4
mov dword [esi + 0x40b0], 0
jmp 0x40de75
mov ebx, dword [ebp - 4]
mov ecx, dword [esi + 0x40bc]
test ecx, ecx
je 0x40deb2
mov eax, dword [0x563448]
mov dword [esi + 0x40b8], 0
mov dword [esi + 0x40b4], 0
test eax, eax
je 0x40dea2
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [esi + 0x40bc], 0
call fcn.00439220
mov eax, dword [edi + 0x4124]
mov byte [edi + 0x3eb3], 0
test eax, eax
je 0x40df21
cmp byte [eax + 0xc4], 0
jne 0x40df21
mov eax, dword [0x563448]
mov edx, dword [eax + 0x3ec8]
sub edx, 1
js 0x40df1a
mov eax, dword [eax + 0x3ed0]
lea esi, [eax + edx*4]
nop word [eax + eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x40df12
cmp byte [ecx + 0xc4], 0
je 0x40df12
mov eax, dword [ecx + 8]
and eax, 0x40200
cmp eax, 0x40200
jne 0x40e0ad
sub esi, 4
sub edx, 1
jns 0x40def0
xor ecx, ecx
call fcn.00416400
mov ecx, dword [edi + 0x3ee4]
test ecx, ecx
jns 0x40df9f
mov eax, ecx
xor esi, esi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg esi, eax
cmp esi, ecx
jle 0x40df9f
mov eax, dword [0x563448]
test eax, eax
je 0x40df4e
inc dword [eax + 0xb0]
imul eax, esi, 0x54
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, dword [edi + 0x3ee8]
add esp, 4
mov dword [ebp - 0x1c], eax
test ebx, ebx
je 0x40df93
imul ecx, dword [edi + 0x3ee0], 0x54
push ecx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [0x563448]
add esp, 0xc
test eax, eax
je 0x40df89
dec dword [eax + 0xb0]
push ebx
call dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
add esp, 4
mov dword [edi + 0x3ee8], eax
mov dword [edi + 0x3ee4], esi
mov dword [edi + 0x3ee0], 0
mov ecx, dword [edi + 0x40d0]
test ecx, ecx
jns 0x40dfcf
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x40cc]
call fcn.00428e60
lea esi, [edi + 0x40a8]
mov dword [edi + 0x40cc], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x40dffe
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00428ee0
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x40e013
push 8
mov ecx, esi
call fcn.00428ee0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push 0
mov dword [eax + ecx*4], 0
lea ecx, [edi + 0x40b4]
inc dword [esi]
call fcn.004286a0
mov ecx, edi
call fcn.0041ff20
mov eax, dword [0x563448]
xor edx, edx
mov byte [edi + 0x3eb1], 1
mov ecx, str.DebugDefault
push 0
or dword [eax + 0x3ff0], 2
mov dword [eax + 0x4014], 0x43c80000
mov dword [eax + 0x4018], 0x43c80000
mov dword [eax + 0x3ff8], 4
call fcn.004133a0
xor ebx, ebx
add esp, 4
cmp dword [edi + 0x53a8], ebx
jle 0x40e0a6
xor esi, esi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
add eax, esi
cmp dword [eax + 4], 1
jne 0x40e09a
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc ebx
add esi, 0x14
cmp ebx, dword [edi + 0x53a8]
jl 0x40e083
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00419bc0
mov ecx, eax
jmp 0x40df1c