Function at 0x404370
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545558
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5ad6a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.0040b6c7
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4043bb
push 0x80004005
call fcn.00401200
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
call fcn.0040b6c7
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4043e8
push 0x80004005
call fcn.00401200
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
mov byte [ebp - 4], 2
call fcn.00401220
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea eax, [ebp - 0x18]
push eax
call fcn.00403960
add esp, 8
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401130
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40444a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x10]
push ecx
lea eax, [edi - 0x10]
mov ebx, esp
push eax
mov dword [ebp - 0x1c], eax
call fcn.00401220
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00403dd0
add esp, 4
cmp eax, 1
je 0x404514
test eax, eax
jne 0x404588
push ecx
lea eax, [edi - 0x10]
mov esi, esp
push eax
call fcn.00401220
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x18]
push eax
call fcn.00404b40
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00401130
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4044cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
je 0x404514
push dword [ebp + 0xc]
lea eax, [esi - 0x10]
push ecx
mov ebx, esp
push eax
call fcn.00401220
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00404370
mov ebx, eax
add esp, 8
test ebx, ebx
js 0x404516
push edi
call fcn.0052c808
add esp, 4
test eax, eax
jns 0x40450b
or ebx, 0xffffffff
jmp 0x404516
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x404514
inc dword [eax]
xor ebx, ebx
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404536
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404553
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x404574
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 0xfffffffe
jmp 0x404516