Function at 0x409ff0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x46dae8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48e820]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov esi, dword [esp + 0x38]
lea edi, [esi - 0x10]
push edi
mov dword [esp + 0x24], edi
call fcn.00410330
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], ebx
mov byte [esp + 0x30], 1
lea ecx, [ecx]
test ebp, ebp
mov eax, dword [esi - 0xc]
jl 0x40a1a2
cmp ebp, eax
jg 0x40a1a2
push 0x47a9d8
add ebp, esi
push ebp
call fcn.00455250
add esp, 8
test eax, eax
je 0x40a1a2
sub eax, esi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40a1a2
push ebp
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
call fcn.0040e9b0
mov byte [esp + 0x30], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x40a0df
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40a0d1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40a0d1
push eax
call fcn.00410330
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40a0c8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x40a0df
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0040ffe0
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a104
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x28], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40a136
cmp eax, dword [esi]
jne 0x40a136
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40a168
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40a19d
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00454237
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
call fcn.00428960
add esp, 4
test eax, eax
jne 0x40a189
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
add ebp, 1
jmp 0x40a040
jmp fcn.0040fab0
lea eax, [ebx - 0x10]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a1c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a1e4
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret