Function at 0x409170
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423d39
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
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
push 0x42f064
lea ecx, [ebp - 0x2c]
call fcn.00410db0
mov esi, 0x7ffffffe
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x409543
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 1
cmovae eax, dword [ebp - 0x2c]
push 0x428228
push ecx
push eax
push ecx
push dword [ebp - 0x90]
lea ecx, [ebp - 0xd8]
call fcn.00417ab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd8]
cmp dword [0x42fcb4], 8
mov eax, 0x42fca0
push dword [0x42fcb0]
cmovae eax, dword [0x42fca0]
push eax
call fcn.00413530
mov dword [ebp - 0x98], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xa8], xmm0
mov dword [ebp - 0x94], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x98], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 0x50
push ecx
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 2
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x88]
call fcn.00410340
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa8]
cmp dword [ebp - 0x94], 8
mov eax, dword [ebp - 0x98]
cmovae ecx, dword [ebp - 0xa8]
lea eax, [ecx + eax*2]
push eax
push ecx
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x88]
call fcn.00412250
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.00410280
cmp dword [ebp - 0xac], 0x10
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0xc0]
cmovae eax, dword [ebp - 0xc0]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
mov ecx, dword [ebp - 0xac]
add esp, 8
test eax, eax
setne byte [ebp - 0x89]
cmp ecx, 0x10
jb 0x40932b
mov edx, dword [ebp - 0xc0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409321
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4093d8
push ecx
push edx
call fcn.004228bd
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
cmp ecx, 8
jb 0x409386
mov edx, dword [ebp - 0xa8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40937c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4093d8
push ecx
push edx
call fcn.004228bd
add esp, 8
xor eax, eax
mov dword [ebp - 0x98], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
cmp ecx, 8
jb 0x4093e8
mov edx, dword [ebp - 0xd8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4093de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4093de
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
cmp byte [ebp - 0x89], 0
je 0x4094c0
nop word [eax + eax]
mov byte [ebp - 4], 4
mov ecx, dword [0x42fcb0]
sub esi, ecx
cmp esi, 1
jb 0x409548
cmp dword [0x42fcb4], 8
mov eax, 0x42fca0
push ecx
cmovae eax, dword [0x42fca0]
push eax
push 1
push 0x428228
push ecx
push dword [ebp - 0x90]
lea ecx, [ebp - 0xd8]
call fcn.00417ab0
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x2c]
call fcn.00412c30
mov edx, dword [ebp - 0xc4]
cmp edx, 8
jb 0x409498
mov eax, dword [ebp - 0xd8]
lea edx, [edx*2 + 2]
mov ecx, eax
cmp edx, 0x1000
jb 0x40948e
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
jbe 0x40948e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push eax
call fcn.004228bd
add esp, 8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 2
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x409527
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40951d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40951d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], vtable.std::exception.0
push eax
call dword [sym.imp.VCRUNTIME140.dll___std_exception_destroy]
add esp, 4
mov eax, 0x40950c
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
call fcn.004021f0
int3