Function at 0x10057a00
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1009d657
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x27c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x294]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2a8]
mov ebp, dword [esp + 0x2a4]
mov dword [esp + 0x14], eax
xor ebx, ebx
xor eax, eax
cmp ebp, ebx
je 0x10057d41
push 0x206
lea edx, [esp + 0x8e]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x94], cx
call fcn.10079c60
add esp, 0xc
push 0x104
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
lea eax, [esp + 0x88]
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], cx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10057ab0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x8c]
lea esi, [esp + 0x70]
call fcn.10007450
mov dword [esp + 0x29c], ebx
mov edx, esi
push edx
lea eax, [esp + 0x1c]
push eax
mov edi, 0x100a7ba8
call fcn.1002d500
mov byte [esp + 0x2a4], 1
push eax
lea ecx, [esp + 0x5c]
push ecx
mov edi, ebp
call fcn.1002d500
add esp, 0x10
mov byte [esp + 0x29c], 3
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x10057b21
mov edx, dword [esp + 0x1c]
push edx
call fcn.100755e2
add esp, 4
xor eax, eax
mov edi, 7
mov word [esp + 0x1c], ax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
cmp dword [esp + 0x68], esi
jae 0x10057b43
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10057bbd
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x58]
call fcn.100073a0
mov ebp, 1
mov byte [esp + 0x29c], bl
cmp dword [esp + 0x68], esi
jb 0x10057b7d
mov ecx, dword [esp + 0x54]
push ecx
call fcn.100755e2
add esp, 4
xor edx, edx
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], dx
mov dword [esp + 0x29c], 0xffffffff
cmp dword [esp + 0x84], esi
jb 0x10057bad
mov eax, dword [esp + 0x70]
push eax
call fcn.100755e2
add esp, 4
mov dword [esp + 0x84], edi
xor ecx, ecx
mov eax, ebp
jmp 0x10057d35
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x38]
push eax
mov edi, str.DRIVERS_
call fcn.1002d500
mov byte [esp + 0x2a4], 4
push eax
lea ecx, [esp + 0x24]
push ecx
mov edi, ebp
call fcn.1002d500
add esp, 0x10
mov byte [esp + 0x29c], 5
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x58]
call fcn.100073a0
mov byte [esp + 0x29c], 4
cmp dword [esp + 0x30], esi
jb 0x10057c18
mov edx, dword [esp + 0x1c]
push edx
call fcn.100755e2
add esp, 4
mov ebp, 7
xor eax, eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], ax
mov byte [esp + 0x29c], 3
cmp dword [esp + 0x4c], esi
jb 0x10057c47
mov ecx, dword [esp + 0x38]
push ecx
call fcn.100755e2
add esp, 4
mov eax, dword [esp + 0x54]
xor edx, edx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], dx
cmp dword [esp + 0x68], esi
jae 0x10057c64
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10057ce0
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x58]
call fcn.100073a0
mov edi, 1
mov byte [esp + 0x29c], bl
cmp dword [esp + 0x68], esi
jb 0x10057c9e
mov eax, dword [esp + 0x54]
push eax
call fcn.100755e2
add esp, 4
xor ecx, ecx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], cx
mov dword [esp + 0x29c], 0xffffffff
cmp dword [esp + 0x84], esi
jb 0x10057cce
mov edx, dword [esp + 0x70]
push edx
call fcn.100755e2
add esp, 4
xor eax, eax
mov word [esp + 0x70], ax
mov dword [esp + 0x84], ebp
mov eax, edi
jmp 0x10057d3a
mov byte [esp + 0x29c], bl
cmp dword [esp + 0x68], esi
jb 0x10057cfa
mov ecx, dword [esp + 0x54]
push ecx
call fcn.100755e2
add esp, 4
xor edx, edx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], dx
mov dword [esp + 0x29c], 0xffffffff
cmp dword [esp + 0x84], esi
jb 0x10057d2a
mov eax, dword [esp + 0x70]
push eax
call fcn.100755e2
add esp, 4
xor ecx, ecx
mov dword [esp + 0x84], ebp
xor eax, eax
mov word [esp + 0x70], cx
mov dword [esp + 0x80], ebx
mov ecx, dword [esp + 0x294]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x27c]
xor ecx, esp
call fcn.100755ed
add esp, 0x28c
ret 8