Function at 0x4020a0
Capabilities:
Create directory
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40643d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x40b040]
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 byte [ebp - 0x2d], cl
mov dword [ebp - 4], 0
mov byte [ebp - 4], 2
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 7
push 0
cmova eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp + 0x1c], 7
lea ecx, [ebp + 8]
mov esi, dword [ebp + 0x18]
mov edx, esi
cmova ecx, dword [ebp + 8]
push 1
sub esp, 8
call fcn.00403650
add esp, 0xc
mov dword [ebp - 0x3c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x4c], xmm0
lea edx, [eax + 1]
cmp esi, edx
jb 0x402338
sub esi, edx
lea eax, [ebp + 8]
or ecx, 0xffffffff
cmp esi, 0xffffffff
cmovb ecx, esi
cmp dword [ebp + 0x1c], 7
push ecx
cmova eax, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
lea eax, [eax + edx*2]
push eax
call fcn.00401a80
mov byte [ebp - 4], 3
mov eax, 0x7ffffffe
mov ecx, dword [ebp + 0x30]
sub eax, ecx
cmp eax, 1
jb 0x40233d
cmp dword [ebp + 0x34], 7
lea eax, [ebp + 0x20]
push 1
cmova eax, dword [ebp + 0x20]
push 0x407678
push ecx
push eax
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x64]
call fcn.00401ec0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call fcn.004038f0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x50]
cmp ecx, 7
jbe 0x4021dc
mov edx, dword [ebp - 0x64]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4021d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402284
push ecx
push edx
call fcn.00405714
add esp, 8
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x38]
cmp ecx, 7
jbe 0x402216
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40220c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402284
push ecx
push edx
call fcn.00405714
add esp, 8
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x2c]
push 1
cmova ecx, dword [ebp - 0x2c]
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 7
push ecx
cmova eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x402342
cmp byte [ebp - 0x2d], 0
je 0x402258
cmp dword [ebp + 0x34], 7
lea eax, [ebp + 0x20]
push 2
cmova eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x402294
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40228a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40228a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00405714
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x4022ca
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4022c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40230a
push ecx
push edx
call fcn.00405714
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, 7
jbe 0x40231a
mov edx, dword [ebp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402310
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402310
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00405714
add esp, 8
xor eax, eax
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.004054cb
mov esp, ebp
pop ebp
ret
call fcn.00403540
call fcn.004011f0
call fcn.00401fd0
int3