Function at 0x415f70
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4521a9
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x469524]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x469524]
xor eax, esp
push eax
lea eax, [esp + 0x2ac]
mov dword fs:[0], eax
mov dword [esp + 0x2b4], 0
call fcn.0042121c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x415fd0
push 0x80004005
call fcn.0040ad10
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 + 0x2b4], 1
call fcn.0042121c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x416002
push 0x80004005
call fcn.0040ad10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x2b4], 2
mov ecx, dword [esp + 0x2bc]
push ecx
lea edx, [esp + 0x1c]
push 0x45aab8
push edx
call fcn.0040a6f0
add esp, 0xc
lea ecx, [esp + 0x18]
lea edi, [esp + 0x20]
call fcn.00417580
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416061
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x416084
push 0x45b624
push ebp
call fcn.0043c059
add esp, 8
test eax, eax
je 0x416084
sub eax, ebp
mov ebx, eax
jmp 0x416087
or ebx, 0xffffffff
push ebx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.00407910
mov byte [esp + 0x2b4], 3
mov ecx, dword [eax]
mov esi, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4160f9
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4160eb
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4160eb
push eax
call fcn.00409fe0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4160de
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x18]
jmp 0x4160f9
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0040a300
mov byte [esp + 0x2b4], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416121
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x416141
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x416148
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
lea eax, [ebx + 1]
test eax, eax
jl 0x416174
cmp eax, ecx
jg 0x416174
add eax, ebp
push 0x45b624
push eax
call fcn.0043c059
add esp, 8
test eax, eax
je 0x416174
sub eax, ebp
mov ebx, eax
jns 0x416087
lea edx, [esp + 0x164]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x416193
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x41619a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x10]
mov byte [esp + 0x2b4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4161be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2b4], 0
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 0x4161e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2b4], 0xffffffff
mov eax, dword [esp + 0x2bc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416214
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x2ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.0043a8ec
add esp, 0x2a4
ret