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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x1099a38]
mov edx, dword [ebp + 8]
and dword [ebp - 0x318], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, edx
push edi
mov dword [ebp - 0x320], esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x104564e
sub eax, edi
mov ebx, 0x104
cmp eax, ebx
jae 0x1045886
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x20c]
push 0x103
rep stosd dword es:[edi], eax
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
mov edi, 0x1014c88
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01074be9
test eax, eax
jne 0x10456b4
push ebx
lea eax, [ebp - 0x108]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01070fc9
jmp 0x10456c9
xor eax, eax
mov cl, byte [ebp + eax - 0x20c]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x10456b6
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call ebx
cmp eax, 0xffffffff
je 0x10456ec
mov dword [ebp - 0x318], 1
jmp 0x1045865
lea eax, [ebp - 0x108]
mov dword [ebp - 0x314], eax
xor eax, eax
mov cl, byte [ebp + eax - 0x108]
mov byte [ebp + eax - 0x20c], cl
inc eax
test cl, cl
jne 0x10456fa
cmp byte [ebp - 0x108], 0x5c
jne 0x1045723
cmp byte [ebp - 0x107], 0x5c
je 0x1045886
push 0x10094ec
push dword [ebp - 0x314]
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
lea esi, [ebp - 0x108]
pop ecx
mov dword [ebp - 0x31c], eax
lea edi, [ebp - 0x20c]
mov ecx, esi
je 0x104577e
sub eax, ecx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp + eax - 0x20c], 0
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x10457c2
inc dword [ebp - 0x31c]
jmp 0x10457ac
mov eax, dword [ebp - 0x314]
sub eax, ecx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp + eax - 0x20d], 0
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x10457d8
mov eax, dword [ebp - 0x31c]
test eax, eax
mov dword [ebp - 0x314], eax
jne 0x1045723
jmp 0x10457d8
mov eax, dword [ebp - 0x314]
lea ecx, [ebp - 0x108]
sub eax, ecx
mov byte [ebp + eax - 0x20c], 0
xor eax, eax
mov cl, byte [ebp + eax - 0x20c]
mov byte [ebp + eax - 0x310], cl
inc eax
test cl, cl
jne 0x10457da
lea eax, [ebp - 0x310]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
test eax, eax
pop ecx
pop ecx
je 0x1045808
mov byte [eax + 1], 0
jmp 0x104581e
lea edi, [ebp - 0x310]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x104580f
mov esi, 0x10094ec
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x1045886
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.01073070
test eax, eax
je 0x1045886
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x318], 1
call fcn.01073131
mov esi, dword [ebp - 0x320]
lea eax, [ebp - 0x108]
test eax, eax
je 0x1045886
push 0x103
push eax
push esi
mov byte [esi + 0x103], 0
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x318]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 8