Function at 0x40bb00
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x692c15
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x75d580]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x44], esi
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov edx, dword [esi]
call fcn.00408b30
mov eax, dword [esi]
mov edx, edi
mov dword [eax], eax
mov eax, dword [esi]
mov dword [eax + 4], eax
mov dword [esi + 4], 0
cmp dword [edi + 0x14], 7
jbe 0x40bb8d
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x34], ecx
mov esi, edx
jmp 0x40bb94
mov ecx, edi
mov dword [ebp - 0x34], edx
mov esi, edi
mov eax, dword [edi + 0x10]
lea eax, [esi + eax*2]
mov dword [ebp - 0x48], eax
cmp edx, eax
je 0x40bd78
movzx eax, word [ecx]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
cmp esi, edi
jae 0x40bbd8
mov edx, dword [ebp - 0x38]
lea eax, [esi + 1]
mov dword [ebp - 0x1c], eax
cmp edi, 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
mov word [eax + esi*2], dx
xor edx, edx
mov word [eax + esi*2 + 2], dx
jmp 0x40bcbb
mov eax, bind
sub eax, esi
cmp eax, 1
jb 0x40bdea
lea ecx, [esi + 1]
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x40bbfd
mov ecx, bind
jmp 0x40bc1b
mov edx, edi
mov eax, bind
shr edx, 1
sub eax, edx
cmp edi, eax
jbe 0x40bc13
mov ecx, bind
jmp 0x40bc1b
lea eax, [edi + edx]
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402370
lea ecx, [esi + 1]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], ecx
add esp, 8
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x18], ecx
lea ecx, [esi + esi]
lea esi, [ecx + eax]
mov dword [ebp - 0x3c], esi
push ecx
cmp edi, 7
jbe 0x40bc99
mov esi, dword [ebp - 0x2c]
push esi
push eax
call fcn.0053f540
mov eax, dword [ebp - 0x3c]
lea edi, [edi*2 + 2]
mov edx, dword [ebp - 0x38]
xor ecx, ecx
add esp, 0xc
mov word [eax], dx
mov word [eax + 2], cx
cmp edi, 0x1000
jb 0x40bc8d
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x40bddb
mov esi, ecx
push edi
push esi
call fcn.0048a4f6
add esp, 8
jmp 0x40bcb2
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.0053f540
mov edx, dword [ebp - 0x38]
add esp, 0xc
xor eax, eax
mov word [esi], dx
mov word [esi + 2], ax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, 0x5c
cmp ax, word [ebp - 0x38]
jne 0x40bd69
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40bd66
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 0
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40bd0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40bdaa
mov eax, dword [ebp - 0x44]
cmp dword [eax + 4], 0x7ffffff
mov edi, dword [eax]
je 0x40bde0
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 1
push 0x20
mov dword [ebp - 0x4c], 0
call fcn.0048a275
mov esi, eax
add esp, 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4c], esi
lea ecx, [esi + 8]
push eax
call fcn.00407510
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0
mov dword [ebp - 0x4c], 0
inc dword [eax + 4]
mov eax, dword [edi + 4]
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [edi + 4], esi
mov dword [eax], esi
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov dword [ebp - 0x34], ecx
cmp ecx, dword [ebp - 0x48]
jne 0x40bba5
mov byte [ebp - 0x2d], 1
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x40bdba
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bdb0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bddb
jmp 0x40bdb0
mov byte [ebp - 0x2d], 0
jmp 0x40bd7c
push ecx
push edx
call fcn.0048a4f6
add esp, 8
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048a267
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00543627
push str.list_too_long
call fcn.00488aa2
call fcn.00401460
int3