Function at 0x50edf0
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x1c0
push 0xffffffffffffffff
push 0x5c698d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x72cec4]
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.0050a2e0
or edi, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
jne 0x50ee4f
push str.Empty_filename_passed_to_function
jmp 0x50ee6d
xor eax, eax
lea ecx, [ebp - 0x1c]
push 1
mov word [ebp - 0x2c], ax
push eax
push dword [ebp - 0x2c]
call fcn.00493da0
cmp eax, 0xffffffff
je 0x50ee9d
push str.Broken_filename_passed_to_function
movaps xmm0, xmmword [0x5e4ea0]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], 0x5cf218
movups xmmword [ebp - 0x40], xmm0
call fcn.004a34c0
add esp, 8
call fcn.005a2cca
xor bl, bl
mov dword [eax], 0x16
jmp 0x50eff9
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004e4cb0
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.004e6550
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 0x50ef05
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50ef05
push 4
push 2
push dword [ebp - 0x28]
call fcn.00461780
add esp, 0xc
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x50ef2f
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50ef2f
push 4
push 2
push dword [ebp - 0x38]
call fcn.00461780
add esp, 0xc
push 1
push dword [ebp + 0x1d4]
lea ecx, [ebp]
push dword [ebp + 0x1d0]
call fcn.0050e1d0
cmp byte [ebp], 0
jne 0x50ef52
xor bl, bl
jmp 0x50eff9
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.00531a50
add esp, 8
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00498670
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 0x50efb4
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x50efb4
push 4
push 2
push dword [ebp - 0x28]
call fcn.00461780
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x50efbe
mov bl, 1
jmp 0x50eff9
cmp byte [ebp + 0x1cc], 0
jne 0x50efcb
xor bl, bl
jmp 0x50eff9
cmp ebx, 0xb7
je 0x50efe9
cmp ebx, 5
je 0x50efe9
push 0
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0050f040
add esp, 0xc
jmp 0x50eff7
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00511300
add esp, 8
mov bl, al
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x50f018
lock xadd dword [eax], edi
cmp edi, 1
jne 0x50f018
push 4
push 2
push dword [ebp - 0x1c]
call fcn.00461780
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.00596709
lea esp, [ebp + 0x1c0]
pop ebp
ret