Function at 0x50d4a0
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x1c0
push 0xffffffffffffffff
push 0x5c4fed
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x72b01c]
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.005089b0
or edi, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
jne 0x50d4ff
push str.Empty_filename_passed_to_function
jmp 0x50d51d
xor eax, eax
lea ecx, [ebp - 0x1c]
push 1
mov word [ebp - 0x2c], ax
push eax
push dword [ebp - 0x2c]
call fcn.004924a0
cmp eax, 0xffffffff
je 0x50d54d
push str.Broken_filename_passed_to_function
movaps xmm0, xmmword [0x5e0c10]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], 0x5cd218
movups xmmword [ebp - 0x40], xmm0
call fcn.004a1bc0
add esp, 8
call fcn.005a132a
xor bl, bl
mov dword [eax], 0x16
jmp 0x50d6a9
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004e3380
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.004e4c20
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 0x50d5b5
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50d5b5
push 4
push 2
push dword [ebp - 0x28]
call fcn.0045fe90
add esp, 0xc
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x50d5df
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50d5df
push 4
push 2
push dword [ebp - 0x38]
call fcn.0045fe90
add esp, 0xc
push 1
push dword [ebp + 0x1d4]
lea ecx, [ebp]
push dword [ebp + 0x1d0]
call fcn.0050c880
cmp byte [ebp], 0
jne 0x50d602
xor bl, bl
jmp 0x50d6a9
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.005300f0
add esp, 8
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00496d70
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 0x50d664
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x50d664
push 4
push 2
push dword [ebp - 0x28]
call fcn.0045fe90
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x50d66e
mov bl, 1
jmp 0x50d6a9
cmp byte [ebp + 0x1cc], 0
jne 0x50d67b
xor bl, bl
jmp 0x50d6a9
cmp ebx, 0xb7
je 0x50d699
cmp ebx, 5
je 0x50d699
push 0
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0050d6f0
add esp, 0xc
jmp 0x50d6a7
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.0050f9b0
add esp, 8
mov bl, al
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x50d6c8
lock xadd dword [eax], edi
cmp edi, 1
jne 0x50d6c8
push 4
push 2
push dword [ebp - 0x1c]
call fcn.0045fe90
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.00594d69
lea esp, [ebp + 0x1c0]
pop ebp
ret