Function at 0x5c9940
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [0x754040]
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 0x29f
push 0x6e0b70
push 0x6e0c02
push edi
call fcn.005080c0
add esp, 0x10
mov ecx, esi
push 0
push edi
call fcn.004fdc20
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.005083a0
cmp dword [ebp + 0x10], 0
sete al
cmp dword [ebp + 0xc], 0
setne cl
or cl, al
mov byte [esp + 3], cl
xor ecx, ecx
mov byte [esp + 2], 1
lea ebx, [esp + 0x20]
lea esi, [esp + 8]
jmp 0x5c99fb
push dword [esp + 0x20]
call fcn.0054fc10
add esp, 4
mov eax, dword [esp + 4]
cmp eax, 0x31
lea eax, [eax + 1]
setb byte [esp + 2]
mov ecx, eax
cmp eax, 0x32
mov ebx, esi
lea esi, [esp + 8]
je 0x5c9bdb
pxor xmm0, xmm0
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x28], 0
cmp byte [esp + 3], 0
je 0x5c9bb9
mov dword [esp + 4], ecx
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00481040
call fcn.00484e70
push eax
push esi
call fcn.005c8a50
add esp, 8
movsx eax, byte [esp + 0x13]
mov edx, esi
test eax, eax
jns 0x5c9a4b
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
test eax, eax
js 0x5c9bb9
sete cl
test edx, edx
setne ch
or ch, cl
je 0x5c9bb9
lea edi, [esp + 0x14]
mov ecx, edi
push eax
push edx
call fcn.004781b0
movsx eax, byte [esp + 0x1f]
test eax, eax
jns 0x5c9a81
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, ebx
push eax
push edi
call fcn.004f88d0
cmp byte [esp + 0x1f], 0
jns 0x5c9a9d
push dword [esp + 0x14]
call fcn.0054fc10
add esp, 4
cmp byte [esp + 0x13], 0
jns 0x5c9ab0
push dword [esp + 8]
call fcn.0054fc10
add esp, 4
mov ecx, ebx
push 0x5f
call fcn.004f8b80
push SysReAllocString
push 0
call fcn.0048f930
add esp, 8
push eax
push esi
call fcn.0048f5c0
add esp, 8
movsx eax, byte [esp + 0x13]
mov edx, esi
test eax, eax
jns 0x5c9ae5
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
test eax, eax
js 0x5c9bb9
sete cl
test edx, edx
setne ch
or ch, cl
je 0x5c9bb9
lea edi, [esp + 0x14]
mov ecx, edi
push eax
push edx
call fcn.004781b0
movsx eax, byte [esp + 0x1f]
test eax, eax
jns 0x5c9b1b
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, ebx
push eax
push edi
call fcn.004f88d0
cmp byte [esp + 0x1f], 0
jns 0x5c9b37
push dword [esp + 0x14]
call fcn.0054fc10
add esp, 4
cmp byte [esp + 0x13], 0
jns 0x5c9b4a
push dword [esp + 8]
call fcn.0054fc10
add esp, 4
movsx eax, byte [esp + 0x2b]
test eax, eax
cmovs eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
cmovns edx, ebx
test eax, eax
js 0x5c9bb9
sete cl
test edx, edx
setne ch
or ch, cl
je 0x5c9bb9
mov esi, ebx
mov ecx, dword [ebp + 8]
push eax
push edx
lea edi, [esp + 0x1c]
push edi
call fcn.00509ca0
lea ebx, [esp + 0x30]
mov ecx, ebx
push edi
call fcn.00508590
mov ecx, edi
call fcn.00508510
cmp byte [esp + 0x3b], 0
jns 0x5c9b9c
mov ebx, dword [esp + 0x30]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5c9bbb
cmp byte [esp + 0x2b], 0
jns 0x5c99db
jmp 0x5c99cf
ud2
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0x30]
push eax
call fcn.00508530
cmp byte [esp + 0x2b], 0
jns 0x5c9bdb
push dword [esp + 0x20]
call fcn.0054fc10
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00508510
lea ecx, [esp + 0x40]
call fcn.004fdc90
mov bl, byte [esp + 2]
and bl, 1
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.00550b46
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret