Function at 0x404340
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548638
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5b39c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.0040dcb4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40438b
push 0x80004005
call fcn.004011e0
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.0040dcb4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4043b8
push 0x80004005
call fcn.004011e0
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.00401200
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea eax, [ebp - 0x18]
push eax
call fcn.00403ce0
add esp, 8
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401110
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 0x40441a
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.00401200
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00404150
add esp, 4
cmp eax, 1
je 0x4044e4
test eax, eax
jne 0x404558
push ecx
lea eax, [edi - 0x10]
mov esi, esp
push eax
call fcn.00401200
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x18]
push eax
call fcn.00404a40
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00401110
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 0x40449b
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 0x4044e4
push dword [ebp + 0xc]
lea eax, [esi - 0x10]
push ecx
mov ebx, esp
push eax
call fcn.00401200
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00404340
mov ebx, eax
add esp, 8
test ebx, ebx
js 0x4044e6
push edi
call fcn.0052e902
add esp, 4
test eax, eax
jns 0x4044db
or ebx, 0xffffffff
jmp 0x4044e6
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4044e4
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 0x404506
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 0x404523
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 0x404544
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 0x4044e6