Function at 0x403ae0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
push dword [ebp + 8]
lea eax, [ebp - 0x40]
mov dword [ebp - 8], fcn.00467290
push eax
mov dword [ebp - 4], fcn.004672d0
mov dword [ebp - 0x3c], 0x4672b0
mov dword [ebp - 0x38], 0x4672e0
call fcn.00467880
add esp, 8
test eax, eax
je 0x403b1e
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.004674b0
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.00463f90
lea eax, [ebp - 8]
push 0x40000
push eax
call dword [ebp - 8]
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x50], esi
mov ebx, eax
test esi, esi
je 0x403b69
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], 0x40000
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
call fcn.00467310
lea eax, [ebp - 0xec]
push eax
call fcn.004656f0
add esp, 4
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 2
mov dword [ebp - 0x10], ebx
test esi, esi
je 0x403bae
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.004657c0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, eax
test ebx, ebx
jne 0x403d8f
xor esi, esi
mov dword [ebp - 0x34], 0xffffffff
push edi
xor edi, edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], edi
cmp dword [ebp - 0xac], esi
jbe 0x403d79
lea ebx, [ebx]
mov eax, dword [ebp - 0xa4]
mov ecx, esi
and ecx, 7
mov dword [ebp - 0x24], 0
mov edx, 0x80
mov dword [ebp - 0xc], 0
sar edx, cl
mov ecx, esi
shr ecx, 3
push 0
push esi
movzx eax, byte [ecx + eax]
and edx, eax
lea eax, [ebp - 0xec]
push eax
mov dword [ebp - 0x20], edx
call fcn.004656a0
mov ebx, eax
add esp, 0xc
cmp ebx, dword [ebp - 0x1c]
jbe 0x403c4a
push edi
push 0
call fcn.004672d0
lea eax, [ebx + ebx]
mov dword [ebp - 0x1c], ebx
push eax
push 0
call fcn.00467290
mov edi, eax
add esp, 0x10
test edi, edi
je 0x403d61
push edi
lea eax, [ebp - 0xec]
push esi
push eax
call fcn.004656a0
add esp, 0xc
cmp dword [ebp - 0x20], 0
jne 0x403c9e
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.00465350
mov ebx, eax
add esp, 0x28
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x403d79
movzx eax, word [edi]
xor ebx, ebx
mov ecx, eax
test ax, ax
je 0x403ce7
mov esi, edi
lea esp, [esp]
cmp cx, 0x2f
jne 0x403cd5
xor eax, eax
push eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x403ccd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, 0x5c
mov word [esi], ax
inc ebx
movzx eax, word [edi + ebx*2]
lea esi, [edi + ebx*2]
mov ecx, eax
test ax, ax
jne 0x403cb0
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x20], 0
je 0x403d02
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x403d4c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x403d4c
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00467900
add esp, 8
test eax, eax
jne 0x403d74
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004677d0
add esp, 0xc
test eax, eax
jne 0x403d68
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0xc]
jne 0x403d68
lea eax, [ebp - 0x14]
push eax
call fcn.00467650
add esp, 4
test eax, eax
jne 0x403d74
inc esi
mov dword [ebp - 0x2c], esi
cmp esi, dword [ebp - 0xac]
jb 0x403be0
mov ebx, dword [ebp - 0x10]
jmp 0x403d79
mov ebx, 2
jmp 0x403d79
lea eax, [ebp - 0x14]
push eax
call fcn.00467650
add esp, 4
mov ebx, 0xb
push dword [ebp - 0x18]
lea eax, [ebp - 8]
push eax
call dword [ebp - 4]
push edi
push 0
call fcn.004672d0
add esp, 0x10
pop edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.00465500
push dword [ebp - 0x50]
lea eax, [ebp - 8]
push eax
call dword [ebp - 4]
lea eax, [ebp - 0x40]
push eax
call fcn.00467650
add esp, 0x14
xor eax, eax
test ebx, ebx
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret