Function at 0x57978f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7132ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
xor eax, eax
mov al, byte [0x7d2e18]
test eax, eax
jne 0x5797d4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x5797cf
mov al, 1
jmp 0x579a82
jmp 0x579a0a
mov edx, dword [ebp + 8]
push edx
call fcn.005756c7
add esp, 4
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 1
je 0x579851
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.004edc1e
add esp, 8
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xcc]
call fcn.004b6540
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x90], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.004125e0
cmp dword [ebp - 0x90], 0
je 0x579851
mov al, 1
jmp 0x579a82
cmp dword [ebp - 0x48], 1
je 0x579868
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x579a0a
cmp dword [ebp - 0x48], 0
je 0x579a0a
lea ecx, [ebp - 0x54]
call fcn.004eca57
mov dword [ebp - 4], 1
xor eax, eax
cmp dword [ebp - 0x48], 1
setne al
push eax
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005758cb
add esp, 0xc
and eax, 0xff
test eax, eax
je 0x5799fb
push 0
lea ecx, [ebp - 0x54]
call fcn.004b6540
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x5798de
mov byte [ebp - 0xa0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004125e0
mov al, byte [ebp - 0xa0]
jmp 0x579a82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x57990c
mov byte [ebp - 0xa4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004125e0
mov al, byte [ebp - 0xa4]
jmp 0x579a82
lea ecx, [ebp - 0x8c]
call fcn.0050dda0
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x54]
call fcn.004b6540
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.004edc90
add esp, 8
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xd4]
call fcn.004ba6b0
push eax
lea ecx, [ebp - 0x8c]
call fcn.00570d6f
and eax, 0xff
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0xa8], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb4]
call fcn.004125e0
mov edx, dword [ebp - 0xa8]
and edx, 0xff
test edx, edx
je 0x5799c1
mov byte [ebp - 0xb8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.0050ddf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004125e0
mov al, byte [ebp - 0xb8]
jmp 0x579a82
lea ecx, [ebp - 0x8c]
call fcn.00511520
mov byte [ebp - 0xbc], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.0050ddf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004125e0
mov al, byte [ebp - 0xbc]
jmp 0x579a82
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004125e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x579a1b
xor al, al
jmp 0x579a82
lea ecx, [ebp - 0x44]
call fcn.0050dda0
mov dword [ebp - 4], 4
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
call fcn.00570d6f
and eax, 0xff
test eax, eax
jne 0x579a5f
mov byte [ebp - 0xc0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0050ddf0
mov al, byte [ebp - 0xc0]
jmp 0x579a82
lea ecx, [ebp - 0x44]
call fcn.00511520
mov byte [ebp - 0xc4], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0050ddf0
mov al, byte [ebp - 0xc4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret