Function at 0x10023650
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10163da1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x10438fc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov edx, edi
lea ecx, [ebp - 0x21c]
call fcn.100174f0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100236d4
test al, 0x10
je 0x100236d4
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x100236cd
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x100236cd
add eax, 0xfffffff4
dec dword [eax]
jne 0x100236cd
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, 1
jmp 0x100238d8
mov edx, dword [ebp - 0x21c]
cmp dword [edx - 4], 3
lea esi, [ebp - 0x224]
ja 0x100237fc
lea eax, [ebp - 0x21c]
push eax
call fcn.100176a0
mov esi, dword [ebp - 0x224]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x100237ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
cmp eax, 0x7a
jne 0x1002376e
test esi, esi
je 0x10023741
lea edx, [esi - 0xc]
test edx, edx
je 0x10023741
dec dword [esi - 0xc]
lea eax, [esi - 0xc]
jne 0x10023741
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x100236cd
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x100236cd
add eax, 0xfffffff4
dec dword [eax]
jne 0x100236cd
push eax
call edi
add esp, 4
mov al, 1
jmp 0x100238d8
test esi, esi
je 0x10023787
lea edx, [esi - 0xc]
test edx, edx
je 0x10023787
dec dword [esi - 0xc]
lea eax, [esi - 0xc]
jne 0x10023787
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x100237a5
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x100237a5
add eax, 0xfffffff4
dec dword [eax]
jne 0x100237a5
push eax
call edi
add esp, 4
xor al, al
jmp 0x100238d8
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
test esi, esi
je 0x100237cb
lea edx, [esi - 0xc]
test edx, edx
je 0x100237cb
dec dword [esi - 0xc]
lea eax, [esi - 0xc]
jne 0x100237cb
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x100236cd
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x100236cd
add eax, 0xfffffff4
dec dword [eax]
jne 0x100236cd
push eax
call edi
add esp, 4
mov al, 1
jmp 0x100238d8
push 0
lea edx, [ebp - 0x21c]
push edx
call fcn.100175b0
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.10017430
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x10023840
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10023840
add eax, 0xfffffff4
dec dword [eax]
jne 0x10023840
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov edx, dword [ebp - 0x220]
push edx
call fcn.10023650
add esp, 4
movzx esi, al
test al, al
je 0x1002388c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x1002388c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1002388c
lea eax, [ebp - 0x220]
call fcn.100164d0
lea eax, [ebp - 0x21c]
call fcn.100164d0
mov al, 1
jmp 0x100238d8
mov eax, dword [ebp - 0x220]
cmp esi, 1
sete bl
test eax, eax
je 0x100238b4
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x100238b4
add eax, 0xfffffff4
dec dword [eax]
jne 0x100238b4
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x100238d6
lea edx, [eax - 0xc]
test edx, edx
je 0x100238d6
add eax, 0xfffffff4
dec dword [eax]
jne 0x100238d6
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10148524
mov esp, ebp
pop ebp
ret