Function at 0x506e10
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x1c0
push 0xffffffffffffffff
push 0x5be96d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x71c56c]
xor eax, ebp
mov dword [ebp + 0x1bc], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x1c8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00502320
or edi, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
jne 0x506e6f
push str.Empty_filename_passed_to_function
jmp 0x506e8d
xor eax, eax
lea ecx, [ebp - 0x1c]
push 1
mov word [ebp - 0x2c], ax
push eax
push dword [ebp - 0x2c]
call fcn.0048bdf0
cmp eax, 0xffffffff
je 0x506ebd
push str.Broken_filename_passed_to_function
movaps xmm0, xmmword [0x5cecd0]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], 0x5c7218
movups xmmword [ebp - 0x40], xmm0
call fcn.0049b510
add esp, 8
call fcn.0059acca
xor bl, bl
mov dword [eax], 0x16
jmp 0x507019
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004dccd0
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.004de580
mov edx, dword [ebp - 0x1c]
mov esi, eax
add esp, 0x10
mov ecx, dword [esi]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 4]
mov dword [esi], edx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x18], ecx
mov eax, dword [esi + 8]
mov dword [esi + 4], edx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x506f25
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x506f25
push 4
push 2
push dword [ebp - 0x28]
call fcn.004597e0
add esp, 0xc
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x506f4f
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x506f4f
push 4
push 2
push dword [ebp - 0x38]
call fcn.004597e0
add esp, 0xc
push 1
push dword [ebp + 0x1d4]
lea ecx, [ebp]
push dword [ebp + 0x1d0]
call fcn.005061f0
cmp byte [ebp], 0
jne 0x506f72
xor bl, bl
jmp 0x507019
xor eax, eax
lea esi, [ebp + 4]
cmp byte [ebp + 1], al
cmovne esi, eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00529a60
add esp, 8
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004906d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne byte [ebp - 0xd]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x506fd4
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x506fd4
push 4
push 2
push dword [ebp - 0x28]
call fcn.004597e0
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x506fde
mov bl, 1
jmp 0x507019
cmp byte [ebp + 0x1cc], 0
jne 0x506feb
xor bl, bl
jmp 0x507019
cmp ebx, 0xb7
je 0x507009
cmp ebx, 5
je 0x507009
push 0
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00507060
add esp, 0xc
jmp 0x507017
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00509320
add esp, 8
mov bl, al
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x507038
lock xadd dword [eax], edi
cmp edi, 1
jne 0x507038
push 4
push 2
push dword [ebp - 0x1c]
call fcn.004597e0
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1bc]
xor ecx, ebp
call fcn.0058e709
lea esp, [ebp + 0x1c0]
pop ebp
ret