Function at 0x40a000
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450190
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x461194]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x461194]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor edi, edi
mov esi, ecx
push edi
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a26d
mov word [esp + 0x48], ax
mov eax, esi
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a065
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x48]
call fcn.00402fb0
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x74], edi
call fcn.0040a280
mov byte [esp + 0x70], 1
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
lea edi, [eax + 4]
mov edx, esi
push edx
push ecx
push eax
call fcn.0040a3b0
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.0040a450
mov dword [edi], esi
mov edx, dword [esi + 4]
mov eax, 0x5c
mov dword [edx], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
lea edi, [esp + 0x40]
call fcn.00404fc0
mov ebx, eax
or eax, 0xffffffff
lea esi, [esp + 0x44]
call fcn.004031c0
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x40a0f1
lea eax, [esp + 0x48]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a12c
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 4]
lea ebx, [eax + 4]
lea ecx, [esp + 0x44]
push ecx
push edx
push eax
call fcn.0040a3b0
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.0040a450
mov dword [ebx], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov esi, dword [esp + 0x14]
jmp 0x40a135
mov esi, 1
mov dword [esp + 0x14], esi
push 1
lea ecx, [esp + 0x1c]
push ecx
xor eax, eax
lea edx, [esp + 0x4c]
call fcn.00407810
cmp eax, 0xffffffff
je 0x40a156
test esi, esi
je 0x40a0c6
jmp 0x40a15e
test esi, esi
je 0x40a20c
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x34]
mov ebx, dword [edx]
test esi, esi
je 0x40a17a
cmp esi, dword [esp + 0x20]
je 0x40a17f
call fcn.004311f5
cmp edi, ebx
je 0x40a20c
mov dword [esp + 0x40], edi
test esi, esi
jne 0x40a194
call fcn.004311f5
mov ebx, dword [edi + 4]
test esi, esi
je 0x40a19f
mov eax, dword [esi]
jmp 0x40a1a1
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x40a1af
call fcn.004311f5
mov edi, dword [esp + 0x1c]
test esi, esi
jne 0x40a1cf
call fcn.004311f5
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x40a1c4
call fcn.004311f5
cmp dword [ebx + 0x20], 8
jb 0x40a1d3
mov ebx, dword [ebx + 0xc]
jmp 0x40a1d6
mov eax, dword [esi]
jmp 0x40a1ba
add ebx, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
jne 0x40a1e8
call fcn.004311f5
mov edi, dword [edi + 4]
mov dword [esp + 0x1c], edi
test esi, esi
je 0x40a1f7
mov eax, dword [esi]
jmp 0x40a1f9
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40a16a
call fcn.004311f5
jmp 0x40a16a
lea ebx, [esp + 0x20]
call fcn.0040a350
mov eax, dword [esp + 0x34]
push eax
call fcn.00431205
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
mov dword [esp + 0x38], 0
call fcn.00431205
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40a24b
mov edx, dword [esp + 0x48]
push edx
call fcn.00431205
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00430e4c
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x40a24f