Function at 0x401610
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4070cd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x40b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push dword [ebp + 0x18]
call fcn.004040c0
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp + 8]
cmovae esi, dword [ebp + 8]
nop
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, ecx
cmp esi, eax
je 0x4017ac
mov bl, byte [esi]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 0x45], bl
cmp ecx, edx
jae 0x4016d1
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x4016e4
push dword [ebp - 0x45]
mov byte [ebp - 0x49], 0
push dword [ebp - 0x49]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00405e30
cmp bl, 0x5c
je 0x401702
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
dec eax
add eax, ecx
cmp esi, eax
jne 0x4017a0
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
cmovae edx, ebx
mov edi, dword [ebp - 0x30]
sub eax, edi
mov ecx, dword [ebp - 0x18]
push ecx
push edx
cmp ecx, eax
ja 0x401745
cmp dword [ebp - 0x2c], 0x10
lea eax, [ecx + edi]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
add edi, eax
push edi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov byte [eax + edi], 0
jmp 0x401758
mov byte [ebp - 0x4d], 0
push dword [ebp - 0x4d]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00405cc0
mov ebx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
test eax, eax
je 0x40178c
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 4
test eax, eax
jne 0x4017a6
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, ebx
mov byte [eax], 0
inc esi
jmp 0x401690
mov byte [ebp - 0x41], 0
jmp 0x4017b3
mov ebx, dword [ebp - 0x28]
mov byte [ebp - 0x41], 1
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4017e2
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4017d8
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40184a
push ecx
push ebx
call fcn.00406406
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x401812
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401808
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40184a
push edx
push ecx
call fcn.00406406
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x40185a
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401850
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401850
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406406
add esp, 8
mov al, byte [ebp - 0x41]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004060e2
mov esp, ebp
pop ebp
ret