Function at 0x10026410
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082410
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100a7070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ecx, ecx
je 0x10026734
cmp word [ecx], 0
je 0x10026734
push ecx
lea ecx, [ebp - 0x10]
call fcn.10018a60
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.100262e0
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10019540
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10026698
nop dword [eax]
push 0x5c
push dword [ebp - 0x10]
call fcn.1005cca9
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10026694
sub ebx, dword [ebp - 0x10]
sar ebx, 1
test ebx, ebx
jle 0x10026694
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.10018590
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x1002653b
cmp dword [edi + 0xc], 0
jl 0x1002652f
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x1002652f
call fcn.10019540
mov dword [ebp - 0x14], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10026524
mov edx, dword [edi]
push edi
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
cmp ecx, 0x10097a44
jne 0x10026520
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 0x10], eax
jmp 0x1002653b
mov ecx, edx
call eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 0x10], eax
jmp 0x1002653b
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.10019610
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10026575
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x10026571
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10026575
mov ecx, edx
call edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10026490
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax]
add ebx, 1
js 0x1002667e
cmp ebx, dword [esi - 0xc]
jge 0x1002667e
lea eax, [esi + ebx*2]
push 0x5c
push eax
call fcn.1005c978
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1002667e
sub ebx, esi
sar ebx, 1
test ebx, ebx
jle 0x1002667e
push ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10018590
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov dword [ebp - 0x18], ecx
lea edi, [edx - 0x10]
cmp edi, ecx
je 0x1002661a
cmp dword [ecx + 0xc], 0
jl 0x1002660e
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x1002660e
mov ecx, edi
call fcn.10019540
mov ecx, dword [ebp - 0x18]
mov edi, eax
call fcn.10014570
lea eax, [edi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x1002661a
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.10019610
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10026654
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x10026650
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10026654
mov ecx, edx
call edi
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10026590
call edi
cmp eax, 0xb7
je 0x10026590
xor edi, edi
jmp 0x1002669d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10026698
call edi
cmp eax, 0xb7
je 0x10026698
xor edi, edi
jmp 0x1002669d
mov edi, 1
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100266d4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x100266d2
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100266d4
call edx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10026720
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1002671c
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
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 ecx, edx
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret