Function at 0x5ba480
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [0x742040]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x40]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea edi, [esp + 0x30]
push 0x2a2
push 0x6d1c40
push 0x6d1cd2
push edi
call fcn.004f2b50
add esp, 0x10
mov ecx, esi
push 0
push edi
call fcn.004e8e00
xor eax, eax
dec eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
lea ecx, [esp + 0x30]
call fcn.004f2e40
xor ecx, ecx
mov byte [esp + 3], 1
lea esi, [esp + 0x20]
lea ebx, [esp + 8]
mov dword [esp + 4], ecx
pxor xmm0, xmm0
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x28], 0
mov ecx, esi
push dword [ebp + 0xc]
call fcn.004d3530
call fcn.00488fb0
push eax
push ebx
call fcn.005bc580
add esp, 8
movsx eax, byte [esp + 0x13]
mov edx, ebx
test eax, eax
jns 0x5ba53b
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
test eax, eax
js 0x5ba72b
sete cl
test edx, edx
setne ch
or ch, cl
je 0x5ba724
lea edi, [esp + 0x14]
mov ecx, edi
push eax
push edx
call fcn.0047a2c0
movsx eax, byte [esp + 0x1f]
test eax, eax
jns 0x5ba571
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, esi
push eax
push edi
call fcn.004e3cf0
cmp byte [esp + 0x1f], 0
jns 0x5ba58d
push dword [esp + 0x14]
call fcn.00540380
add esp, 4
cmp byte [esp + 0x13], 0
jns 0x5ba5a0
push dword [esp + 8]
call fcn.00540380
add esp, 4
mov ecx, esi
push 0x5f
call fcn.004e40a0
push SysReAllocString
push 0
call fcn.00493f00
add esp, 8
push eax
push ebx
call fcn.00493bc0
add esp, 8
movsx eax, byte [esp + 0x13]
mov edx, ebx
test eax, eax
jns 0x5ba5d5
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
test eax, eax
js 0x5ba72b
sete cl
test edx, edx
setne ch
or ch, cl
je 0x5ba724
lea edi, [esp + 0x14]
mov ecx, edi
push eax
push edx
call fcn.0047a2c0
movsx eax, byte [esp + 0x1f]
test eax, eax
jns 0x5ba60b
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, esi
push eax
push edi
call fcn.004e3cf0
cmp byte [esp + 0x1f], 0
jns 0x5ba627
push dword [esp + 0x14]
call fcn.00540380
add esp, 4
cmp byte [esp + 0x13], 0
jns 0x5ba63a
push dword [esp + 8]
call fcn.00540380
add esp, 4
movsx eax, byte [esp + 0x2b]
test eax, eax
cmovs eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
cmovns edx, esi
test eax, eax
js 0x5ba72b
sete cl
test edx, edx
setne ch
or ch, cl
je 0x5ba724
mov ebx, esi
mov ecx, dword [ebp + 8]
push eax
push edx
lea edi, [esp + 0x1c]
push edi
call fcn.004f4650
lea esi, [esp + 0x30]
mov ecx, esi
push edi
call fcn.00495930
mov ecx, edi
call fcn.004f2fc0
cmp byte [esp + 0x3b], 0
jns 0x5ba694
mov esi, dword [esp + 0x30]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5ba702
cmp byte [esp + 0x2b], 0
jns 0x5ba6b4
push dword [esp + 0x20]
call fcn.00540380
add esp, 4
mov eax, dword [esp + 4]
cmp eax, 0x31
lea eax, [eax + 1]
setb byte [esp + 3]
mov ecx, eax
cmp eax, 0x32
mov esi, ebx
lea ebx, [esp + 8]
jne 0x5ba4f9
lea ecx, [esp + 0x30]
call fcn.004f2fc0
lea ecx, [esp + 0x40]
call fcn.004e8e70
mov bl, byte [esp + 3]
and bl, 1
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.005412b6
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x30]
push eax
call fcn.004f2fe0
cmp byte [esp + 0x2b], 0
jns 0x5ba6d4
push dword [esp + 0x20]
call fcn.00540380
add esp, 4
jmp 0x5ba6d4
push 0x6bd0c2
jmp 0x5ba730
push 0x6bcfdb
push 0x6bd0bf
call fcn.0057cbd0
int3