Function at 0x40a9b6
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cc58d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5107c0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov esi, dword [eax]
mov eax, ecx
mov dword [esp + 0x18], eax
test esi, esi
je 0x40abd9
mov ebx, dword [ebp + 0xc]
push 0x5c
pop eax
cmp byte [edi + 0x310], 0
jne 0x40abd7
cmp byte [esi + 0xc], 0
push 0x104
mov word [ebx], ax
lea eax, [ebx + 2]
push eax
push 0xffffffffffffffff
lea eax, [esi + 0x38]
push eax
push ecx
push 0xfde9
je 0x40aa7f
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [edi + 0x102]
call fcn.0040a943
test al, al
jne 0x40aa75
xor eax, eax
push eax
lea eax, [edi + 0x102]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x34]
jne 0x40aa58
sub ecx, edx
sar ecx, 1
lea eax, [ebx + ecx*2]
mov ecx, edi
push eax
push esi
call fcn.0040a9b6
xor eax, eax
mov word [ebx], ax
jmp 0x40abb0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x14]
call fcn.0041b642
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], eax
lea eax, [edi + 0x102]
push 6
push eax
call fcn.0041b685
test al, al
je 0x40abc7
mov ecx, dword [edi + 0x570]
xorps xmm0, xmm0
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
movlpd qword [esp + 0x1c], xmm0
cmp edx, ecx
ja 0x40aadd
cmp eax, ecx
jbe 0x40ab8a
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
mov ebx, ecx
cmp byte [edi + 0x310], 0
jne 0x40ab87
mov ecx, 0x10000
mov dword [esp + 0x1c], ecx
test edx, edx
ja 0x40ab11
jb 0x40ab0b
cmp eax, ecx
jae 0x40ab11
mov ecx, eax
mov dword [esp + 0x1c], eax
lea eax, [ecx + 0x7ff]
shr eax, 0xb
add dword [edi + 0x558], eax
lea eax, [esp + 0x38]
push eax
push ecx
push dword [esp + 0x30]
mov ecx, dword [edi + 0x574]
push dword [esp + 0x30]
push ebx
push esi
call fcn.004439e2
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x38], eax
jne 0x40ab87
push eax
push dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
call fcn.0041b798
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
sbb edx, 0
mov dword [esp + 0x2c], eax
add ebx, dword [esp + 0x1c]
push 0
pop ecx
adc dword [esp + 0x24], ecx
mov dword [esp + 0x30], edx
cmp edx, ecx
ja 0x40aaeb
jb 0x40ab87
cmp eax, ecx
ja 0x40aaeb
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x14]
call fcn.0041b64d
xor eax, eax
lea ecx, [esp + 0x14]
mov word [ebx], ax
inc dword [edi + 0x560]
inc dword [esp + 0x18]
or dword [esp + 0x48], 0xffffffff
call fcn.0041b648
mov esi, dword [esi + 4]
push 0
pop ecx
push 0x5c
pop eax
test esi, esi
jne 0x40aa03
mov eax, dword [esp + 0x18]
jmp 0x40abd9
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0041b648
jmp 0x40abc1
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8