Function at 0x40a030
Capabilities:
Create directory
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x46c600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov al, byte [esp + 0x50]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], al
call fcn.00409470
mov edx, dword [esp + 0x60]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.0040ae20
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x60], ebx
call fcn.00409e90
add esp, 8
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp eax, ebx
mov byte [esp + 0x58], 1
je 0x40a28b
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x30]
sub ecx, eax
push ecx
push ebx
push edx
lea ecx, [esp + 0x2c]
call fcn.0040aaa0
mov eax, dword [esp + 0x38]
mov byte [esp + 0x58], 2
cmp eax, ebx
je 0x40a10c
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x40a0d8
mov eax, 0x471334
push eax
call ebp
test eax, eax
jne 0x40a10c
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x40a0ec
mov eax, 0x471334
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40a2ef
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x40a109
mov eax, 0x471334
push eax
call ebp
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x20]
call fcn.00409a40
mov eax, dword [esp + 0x28]
cmp eax, esi
jae 0x40a123
mov esi, eax
cmp esi, ebx
jbe 0x40a15a
mov ecx, dword [esp + 0x24]
sub eax, esi
push eax
lea edx, [ecx + esi]
push edx
push ecx
call fcn.004336d0
mov edi, dword [esp + 0x34]
add esp, 0xc
sub edi, esi
lea ecx, [esp + 0x20]
push ebx
push edi
call fcn.00409600
test al, al
je 0x40a15a
push edi
lea ecx, [esp + 0x24]
call fcn.004095e0
push 1
lea eax, [esp + 0x64]
push ebx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 0x5c
call fcn.0040ac30
mov esi, eax
inc esi
cmp esi, 1
jne 0x40a1bf
lea ecx, [esp + 0x10]
call fcn.0040acc0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
call fcn.0040acc0
cmp esi, ebx
jne 0x40a196
xor esi, esi
jmp 0x40a19a
sub esi, dword [esp + 0x14]
push 1
push esi
lea ecx, [esp + 0x18]
call fcn.004094c0
push 1
lea ecx, [esp + 0x64]
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 0x5c
call fcn.0040ac30
mov esi, eax
inc esi
cmp esi, ebx
je 0x40a21e
cmp esi, dword [esp + 0x18]
jae 0x40a21e
mov dl, byte [esp + 0x60]
mov edi, dword [0x471338]
push ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0x44], dl
call fcn.00409470
push edi
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x4c]
call fcn.00409830
mov ecx, dword [0x471338]
lea edx, [esp + 0x40]
push ecx
push ebx
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 3
call fcn.00409830
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 2
call fcn.00409470
jmp 0x40a26f
mov edi, dword [0x471338]
lea ecx, [esp + 0x10]
call fcn.00409a40
mov eax, dword [esp + 0x18]
cmp eax, edi
jae 0x40a237
mov edi, eax
cmp edi, ebx
jbe 0x40a26f
mov ecx, dword [esp + 0x14]
sub eax, edi
push eax
lea edx, [ecx + edi]
push edx
push ecx
call fcn.004336d0
mov esi, dword [esp + 0x24]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x10]
push ebx
push esi
call fcn.00409600
test al, al
je 0x40a26f
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
mov byte [eax + esi], bl
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 1
call fcn.00409470
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x40a0a8
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x40a298
mov eax, 0x471334
push eax
call ebp
test eax, eax
jne 0x40a301
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x40a2ac
mov eax, 0x471334
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40a301
push 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], bl
call fcn.00409470
push 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00409470
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 1
call fcn.00409470
jmp 0x40a2b8
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x40a325
mov al, byte [ecx - 1]
cmp al, bl
je 0x40a31b
cmp al, 0xff
je 0x40a31b
dec al
mov byte [ecx - 1], al
jmp 0x40a325
dec ecx
push ecx
call fcn.00453071
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], ebx
cmp ecx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
je 0x40a355
mov al, byte [ecx - 1]
cmp al, bl
je 0x40a34b
cmp al, 0xff
je 0x40a34b
dec al
mov byte [ecx - 1], al
jmp 0x40a355
dec ecx
push ecx
call fcn.00453071
add esp, 4
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret