Function at 0x40f660
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x45dc10
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x47aab0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
call fcn.0041ba0a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f6a0
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0xbc]
push edx
lea eax, [esp + 0x18]
push 0x46a50c
push eax
call fcn.00407ac0
mov edi, dword [esp + 0x20]
add esp, 8
lea ebp, [edi - 0x10]
mov dword [esp + 0x38], esp
mov esi, esp
push ebp
call fcn.00401f70
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040c920
add esp, 4
test eax, eax
jne 0x40f714
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40f714
push eax
push eax
push 0x46a514
call fcn.004244d4
call fcn.0041ba0a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f72e
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x2c], 1
call fcn.0041ba0a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f75d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x2c], 2
call fcn.0041ba0a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f78c
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
or edi, 0xffffffff
mov byte [esp + 0x2c], 3
cmp dword [0x47f970], edi
je 0x40f7f1
lea ecx, [esp + 0x34]
push ecx
mov ecx, 0x47f958
call fcn.0040e290
add esp, 4
test eax, eax
je 0x40f7f1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x34]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00401f70
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040f3e0
add esp, 4
cmp dword [0x47f928], edi
je 0x40f80b
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x47f910
call fcn.0040e290
add esp, 4
cmp dword [0x47f94c], edi
je 0x40f825
lea eax, [esp + 0x18]
push eax
mov ecx, 0x47f934
call fcn.0040e290
add esp, 4
mov byte [esp + 0x2c], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f849
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f86d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f891
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], edi
lea ecx, [ebp + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40f8ac
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret 4