Function at 0x4135ae
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d2e41
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x518450]
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 0x4137d1
mov ebx, dword [ebp + 0xc]
push 0x5c
pop eax
cmp byte [edi + 0x310], 0
jne 0x4137cf
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 0x413677
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [edi + 0x102]
call fcn.0041353b
test al, al
jne 0x41366d
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 0x413650
sub ecx, edx
sar ecx, 1
lea eax, [ebx + ecx*2]
mov ecx, edi
push eax
push esi
call fcn.004135ae
xor eax, eax
mov word [ebx], ax
jmp 0x4137a8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x14]
call fcn.00420067
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], eax
lea eax, [edi + 0x102]
push 6
push eax
call fcn.004200fe
test al, al
je 0x4137bf
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 0x4136d5
cmp eax, ecx
jbe 0x413782
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
mov ebx, ecx
cmp byte [edi + 0x310], 0
jne 0x41377f
mov ecx, 0x10000
mov dword [esp + 0x1c], ecx
test edx, edx
ja 0x413709
jb 0x413703
cmp eax, ecx
jae 0x413709
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.00446d2d
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x38], eax
jne 0x41377f
push eax
push dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
call fcn.0042023f
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 0x4136e3
jb 0x41377f
cmp eax, ecx
ja 0x4136e3
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x14]
call fcn.00420072
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.0042006d
mov esi, dword [esi + 4]
push 0
pop ecx
push 0x5c
pop eax
test esi, esi
jne 0x4135fb
mov eax, dword [esp + 0x18]
jmp 0x4137d1
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0042006d
jmp 0x4137b9
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