Function at 0x4131dc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d2856
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x517490]
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 0x4133ff
mov ebx, dword [ebp + 0xc]
push 0x5c
pop eax
cmp byte [edi + 0x310], 0
jne 0x4133fd
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 0x4132a5
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [edi + 0x102]
call fcn.00413169
test al, al
jne 0x41329b
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 0x41327e
sub ecx, edx
sar ecx, 1
lea eax, [ebx + ecx*2]
mov ecx, edi
push eax
push esi
call fcn.004131dc
xor eax, eax
mov word [ebx], ax
jmp 0x4133d6
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x14]
call fcn.0041fc20
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], eax
lea eax, [edi + 0x102]
push 6
push eax
call fcn.0041fcb7
test al, al
je 0x4133ed
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 0x413303
cmp eax, ecx
jbe 0x4133b0
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
mov ebx, ecx
cmp byte [edi + 0x310], 0
jne 0x4133ad
mov ecx, 0x10000
mov dword [esp + 0x1c], ecx
test edx, edx
ja 0x413337
jb 0x413331
cmp eax, ecx
jae 0x413337
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.00446a5d
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x38], eax
jne 0x4133ad
push eax
push dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
call fcn.0041fdf8
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 0x413311
jb 0x4133ad
cmp eax, ecx
ja 0x413311
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x14]
call fcn.0041fc2b
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.0041fc26
mov esi, dword [esi + 4]
push 0
pop ecx
push 0x5c
pop eax
test esi, esi
jne 0x413229
mov eax, dword [esp + 0x18]
jmp 0x4133ff
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0041fc26
jmp 0x4133e7
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