Function at 0x40f570
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x449ce1
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x466910]
xor eax, esp
mov dword [esp + 0x46c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466910]
xor eax, esp
push eax
lea eax, [esp + 0x484]
mov dword fs:[0], eax
mov eax, dword [esp + 0x494]
xor ebp, ebp
mov esi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
cmp dword [eax + 0x210], ebp
jne 0x40f7de
mov ebx, 1
push 0x40e
mov byte [eax + 0x214], bl
mov byte [eax + 0x215], bl
lea ecx, [esp + 0x76]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x7c], ax
call fcn.00437170
add esp, 0xc
xor edx, edx
mov eax, esi
mov word [esp + 0x58], dx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebp
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40f610
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x58]
call fcn.0040c460
mov edi, ebx
mov ebx, esi
mov dword [esp + 0x48c], ebp
call fcn.0040c130
xor ecx, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], cx
mov byte [esp + 0x48c], 1
cmp eax, 0xffffffff
jne 0x40f753
push 0x104
lea edx, [esp + 0x74]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x70]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40f677
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x74]
lea esi, [esp + 0x58]
call fcn.0040c460
mov edi, 1
mov ebx, esi
call fcn.0040c130
cmp eax, 0xffffffff
je 0x40f763
lea ecx, [eax + 1]
mov eax, esi
push eax
xor edx, edx
lea esi, [esp + 0x20]
call fcn.0040c100
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x494], 2
call fcn.0040c3b0
mov ebx, 8
mov byte [esp + 0x48c], 1
cmp dword [esp + 0x34], ebx
jb 0x40f6ee
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00415952
add esp, 4
push 4
mov eax, str.Log_
lea ecx, [esp + 0x3c]
call fcn.0040c2d0
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebx
jae 0x40f70c
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40f72d
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebx
jae 0x40f725
lea eax, [esp + 0x3c]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [esp + 0x18]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40f736
sub eax, esi
sar eax, 1
push eax
mov eax, edx
lea ecx, [esp + 0x3c]
call fcn.0040c2d0
jmp 0x40f768
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x40]
call fcn.0040c3b0
mov ebx, 8
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebx
jae 0x40f776
lea eax, [esp + 0x3c]
mov edi, dword [esp + 0x14]
push eax
lea esi, [edi + 2]
push 0x104
push esi
call fcn.0043349d
push 0x40
push 0x456460
push esi
call fcn.00433b44
add esp, 0x18
mov dword [edi + 0x210], eax
mov dword [edi + 0x20c], ebp
cmp dword [esp + 0x50], ebx
jb 0x40f7b8
mov edx, dword [esp + 0x3c]
push edx
call fcn.00415952
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], ax
cmp dword [esp + 0x6c], ebx
jb 0x40f7de
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00415952
add esp, 4
mov ecx, dword [esp + 0x484]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x46c]
xor ecx, esp
call fcn.004331c4
add esp, 0x47c
ret 4