Function at 0x40b490
Capabilities:
Delete file
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424177
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov byte [ebp - 4], 3
mov eax, 0x7ffffffe
mov ecx, dword [ebp + 0x30]
sub eax, ecx
cmp eax, 1
jb 0x40c148
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push 1
cmovae eax, dword [ebp + 0x20]
push 0x428228
push ecx
push eax
push ecx
push dword [ebp - 0x154]
lea ecx, [ebp - 0x170]
call fcn.00417ab0
mov byte [ebp - 4], 4
lea eax, [ebp + 0x38]
cmp dword [ebp + 0x4c], 8
lea ecx, [ebp - 0x170]
push dword [ebp + 0x48]
cmovae eax, dword [ebp + 0x38]
push eax
call fcn.00413530
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x15c]
cmp ecx, 8
jb 0x40b5a2
mov edx, dword [ebp - 0x170]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b598
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b598
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004228bd
add esp, 8
xor eax, eax
mov dword [ebp - 0x160], 0
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x170], ax
cmovae ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x15c], 7
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00415170
cmp dword [eax + 0x14], 0x10
jb 0x40b5ea
mov eax, dword [eax]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov ecx, dword [ebp - 0x48]
add esp, 4
cmp ecx, 0x10
jb 0x40b62a
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b620
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b620
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004228bd
add esp, 8
call fcn.00408620
push 0x50
lea eax, [ebp - 0xc4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xc4]
call fcn.00410340
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
lea eax, [ecx + eax*2]
push eax
push ecx
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00412250
lea ecx, [ebp - 0xc4]
call fcn.00410280
mov byte [ebp - 4], 8
xor esi, esi
mov eax, dword [0x429e48]
movups xmm0, xmmword [0x429e38]
mov dword [ebp - 0x160], eax
mov ax, word [0x429e4c]
movups xmmword [ebp - 0x170], xmm0
mov word [ebp - 0x15c], ax
nop dword [eax]
mov eax, 0x4ec4ec4f
mov ecx, esi
mul esi
shr edx, 4
imul eax, edx, 0x34
sub ecx, eax
add ecx, 0x36
xor word [ebp + esi*2 - 0x170], cx
inc esi
cmp esi, 0xb
jl 0x40b6b0
lea edx, [ebp - 0x170]
lea ecx, [ebp - 0x44]
call fcn.00408380
mov dword [ebp - 0x154], eax
push 0x50
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 9
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xc4]
call fcn.00410340
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
lea eax, [ecx + eax*2]
push eax
push ecx
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00412250
lea ecx, [ebp - 0xc4]
call fcn.00410280
mov byte [ebp - 4], 0xb
xor esi, esi
cmp dword [0x42fc1c], 2
movups xmm0, xmmword [0x42a3d4]
movups xmmword [ebp - 0x74], xmm0
movups xmm0, xmmword [0x42a3e4]
movups xmmword [ebp - 0x64], xmm0
movups xmm0, xmmword [0x42a3f4]
movups xmmword [ebp - 0x54], xmm0
jl 0x40b890
movaps xmm4, xmmword [0x42a410]
mov edi, 4
movaps xmm3, xmmword [0x42a4b0]
mov esi, 0x1f
movaps xmm6, xmmword [0x42a430]
xor ecx, ecx
movd xmm5, edi
movd xmm7, esi
nop dword [eax]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [str.66666666]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x74]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x74], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [str.66666666]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x6c]
pxor xmm1, xmm0
movq qword [ebp + ecx*2 - 0x6c], xmm1
add ecx, 8
cmp ecx, 0x18
jl 0x40b7a0
jmp 0x40b8bb
mov eax, 0x4ec4ec4f
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x34
sub ecx, eax
add ecx, 0x36
xor word [ebp + esi*2 - 0x74], cx
inc esi
cmp esi, 0x18
jl 0x40b890
mov edi, 4
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x1a0]
call fcn.00408380
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 0xc
push ecx
push eax
push dword [ebp - 0x154]
lea ecx, [ebp - 0x170]
call fcn.00417bc0
push dword [ebp - 0x154]
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 0xd
push eax
push dword [ebp - 0x154]
lea ecx, [ebp - 0x188]
call fcn.00417bc0
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 0x154]
lea ecx, [ebp - 0x5c]
call fcn.00417bc0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x174]
cmp ecx, 0x10
jb 0x40b966
mov edx, dword [ebp - 0x188]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b95c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bab1
push ecx
push edx
call fcn.004228bd
add esp, 8
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x15c]
cmp ecx, 0x10
jb 0x40b9a4
mov edx, dword [ebp - 0x170]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b99a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bab1
push ecx
push edx
call fcn.004228bd
add esp, 8
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x18c]
cmp ecx, 0x10
jb 0x40b9e2
mov edx, dword [ebp - 0x1a0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b9d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bab1
push ecx
push edx
call fcn.004228bd
add esp, 8
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x18c], 0xf
mov byte [ebp - 0x1a0], 0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x1a4]
cmp ecx, 0x10
jb 0x40ba3b
mov edx, dword [ebp - 0x1b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ba31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bab1
push ecx
push edx
call fcn.004228bd
add esp, 8
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x40ba6f
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ba65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bab1
push ecx
push edx
call fcn.004228bd
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0xc8]
cmp ecx, 0x10
jb 0x40bac1
mov edx, dword [ebp - 0xdc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bab7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bab7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004228bd
add esp, 8
call fcn.00408620
sub esp, 0x18
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.00411250
call fcn.00409c00
add esp, 0x18
call fcn.00408620
mov ecx, 3
call fcn.004087e0
push 0x50
lea eax, [ebp - 0xc4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xc4]
call fcn.00410340
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
lea eax, [ecx + eax*2]
push eax
push ecx
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00412250
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0x15
call fcn.00410280
cmp dword [ebp - 0x15c], 0x10
lea ecx, [ebp - 0xf4]
lea eax, [ebp - 0x170]
cmovae eax, dword [ebp - 0x170]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
mov ecx, dword [ebp - 0x15c]
add esp, 8
test eax, eax
sete al
mov byte [ebp - 0x155], al
cmp ecx, 0x10
jb 0x40bbb3
mov edx, dword [ebp - 0x170]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bba3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bba3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004228bd
mov al, byte [ebp - 0x155]
add esp, 8
test al, al
je 0x40bfa6
call fcn.00408620
push 0x50
lea eax, [ebp - 0x150]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x150]
call fcn.00410340
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
lea eax, [ecx + eax*2]
push eax
push ecx
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x150]
call fcn.00412250
lea ecx, [ebp - 0x150]
call fcn.00410280
mov byte [ebp - 4], 0x18
xor esi, esi
cmp dword [0x42fc1c], 2
movups xmm0, xmmword [str.FXOHHTXRS_l_c]
movups xmmword [ebp - 0xc4], xmm0
movups xmm0, xmmword [0x4298b8]
movups xmmword [ebp - 0xb4], xmm0
movups xmm0, xmmword [0x4298c8]
movups xmmword [ebp - 0xa4], xmm0
movups xmm0, xmmword [0x4298d8]
movups xmmword [ebp - 0x94], xmm0
movups xmm0, xmmword [0x4298e8]
movups xmmword [ebp - 0x84], xmm0
jl 0x40bd85
movaps xmm4, xmmword [0x42a410]
mov eax, 0x1f
movaps xmm3, xmmword [0x42a4b0]
xor ecx, ecx
movaps xmm6, xmmword [0x42a430]
movd xmm5, edi
movd xmm7, eax
nop
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [str.66666666]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0xc4]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0xc4], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [str.66666666]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0xbc]
pxor xmm1, xmm0
movq qword [ebp + ecx*2 - 0xbc], xmm1
add ecx, 8
cmp ecx, 0x28
jl 0x40bc90
jmp 0x40bdae
mov eax, 0x4ec4ec4f
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x34
sub ecx, eax
add ecx, 0x36
xor word [ebp + esi*2 - 0xc4], cx
inc esi
cmp esi, 0x28
jl 0x40bd85
lea edx, [ebp - 0xc4]
lea ecx, [ebp - 0x188]
call fcn.00408380
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0x19
push ecx
push eax
push dword [ebp - 0x154]
lea ecx, [ebp - 0x170]
call fcn.00417bc0
mov byte [ebp - 4], 0x1a
mov edx, dword [ebp - 0x15c]
mov eax, edx
mov ecx, dword [ebp - 0x160]
sub eax, ecx
cmp eax, 1
jb 0x40be1c
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x170]
cmovae eax, dword [ebp - 0x170]
mov word [eax + ecx], 0x27
lea eax, [ebp - 0x170]
jmp 0x40be3d
push 1
push 0x428268
mov byte [ebp - 0x154], 0
lea ecx, [ebp - 0x170]
push dword [ebp - 0x154]
push 1
call fcn.004162a0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0x1c
mov ecx, dword [ebp - 0x15c]
cmp ecx, 0x10
jb 0x40be9d
mov edx, dword [ebp - 0x170]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40be93
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf3d
push ecx
push edx
call fcn.004228bd
add esp, 8
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0xf
mov byte [ebp - 0x170], 0
mov byte [ebp - 4], 0x1d
mov ecx, dword [ebp - 0x174]
cmp ecx, 0x10
jb 0x40bef2
mov edx, dword [ebp - 0x188]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bee8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf3d
push ecx
push edx
call fcn.004228bd
add esp, 8
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0xf
mov byte [ebp - 0x188], 0
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0xc8]
cmp ecx, 0x10
jb 0x40bf4d
mov edx, dword [ebp - 0xdc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bf43
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bf43
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004228bd
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
call fcn.00411250
call fcn.00409c00
add esp, 0x18
mov ecx, 0x42fc40
push 7
push str.SUCCESS
call fcn.004135a0
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x40bfb7
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bf9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c013
push ecx
push edx
call fcn.004228bd
add esp, 8
jmp 0x40bfb7
push 7
push str.ERROR01
mov ecx, 0x42fc40
call fcn.004135a0
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x40bfe7
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bfdd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c013
push ecx
push edx
call fcn.004228bd
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x40c023
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c019
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c019
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004228bd
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x40c05d
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c053
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c0e7
push ecx
push edx
call fcn.004228bd
add esp, 8
mov ecx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp ecx, 8
jb 0x40c0a7
mov edx, dword [ebp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c09d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c0e7
push ecx
push edx
call fcn.004228bd
add esp, 8
mov ecx, dword [ebp + 0x4c]
xor eax, eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
cmp ecx, 8
jb 0x40c12c
mov edx, dword [ebp + 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c122
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c122
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 5
push str.ERROR
mov ecx, 0x42fc40
mov byte [ebp - 4], 0x20
call fcn.004135a0
lea eax, [ebp - 0xfc]
mov dword [ebp - method.std::exception.virtual_0], vtable.std::exception.0
push eax
call dword [sym.imp.VCRUNTIME140.dll___std_exception_destroy]
add esp, 4
mov eax, 0x40c023
ret
push ecx
push edx
call fcn.004228bd
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00422454
mov esp, ebp
pop ebp
ret
call fcn.004021f0
int3