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

Disassembly:
push 0xffffffffffffffff
push 0x1009d5e4
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c8]
mov ebx, ecx
push 0x206
xor edi, edi
lea ecx, [esp + 0x2b2]
xor eax, eax
push edi
push ecx
mov dword [esp + 0x58], ebx
mov esi, edx
mov word [esp + 0x2b8], ax
call fcn.10079c60
push 0x206
lea eax, [esp + 0xb6]
xor edx, edx
push edi
push eax
mov word [esp + 0xbc], dx
call fcn.10079c60
add esp, 0x18
push 0x104
lea ecx, [esp + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp word [esi], di
je 0x10058044
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10057e40
push edi
lea edx, [esp + 0x2b0]
push edx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
neg eax
sbb eax, eax
neg eax
jmp 0x10057fb2
lea eax, [esp + 0x6c]
push esi
push eax
call fcn.10057560
add esp, 8
mov dword [esp + 0x4c0], edi
xor ecx, ecx
lea eax, [esp + 0xa4]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10057e72
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa8]
lea esi, [esp + 0x18]
call fcn.10007450
mov byte [esp + 0x4c0], 1
mov edx, esi
push edx
lea eax, [esp + 0x34]
push eax
mov edi, str.DRIVERS_
call fcn.1002d500
mov byte [esp + 0x4c8], 2
lea ecx, [esp + 0x74]
push ecx
push eax
lea edx, [esp + 0x60]
push edx
call fcn.100522c0
add esp, 0x14
mov byte [esp + 0x4c0], 4
mov ebx, 8
cmp dword [esp + 0x48], ebx
jb 0x10057ee7
mov eax, dword [esp + 0x34]
push eax
call fcn.100755e2
add esp, 4
mov edi, 7
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], esi
mov word [esp + 0x34], cx
mov byte [esp + 0x4c0], 5
cmp dword [esp + 0x2c], ebx
jb 0x10057f18
mov edx, dword [esp + 0x18]
push edx
call fcn.100755e2
add esp, 4
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x1c], ax
push esi
lea eax, [esp + 0x58]
mov ecx, ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
call fcn.100073a0
cmp dword [ebp + 0x18], ebx
jb 0x10057f3f
mov ebp, dword [ebp + 4]
jmp 0x10057f42
add ebp, 4
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10057fdc
mov byte [esp + 0x4c0], al
cmp dword [esp + 0x68], ebx
jb 0x10057f6b
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], esi
mov word [esp + 0x54], dx
mov dword [esp + 0x4c0], 0xffffffff
cmp dword [esp + 0x84], ebx
jb 0x10057f9b
mov eax, dword [esp + 0x70]
push eax
call fcn.100755e2
add esp, 4
xor ecx, ecx
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], esi
mov word [esp + 0x70], cx
xor eax, eax
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.100755ed
add esp, 0x4b0
ret 4
mov byte [esp + 0x4c0], 0
cmp dword [esp + 0x68], ebx
jb 0x10057ff7
mov edx, dword [esp + 0x54]
push edx
call fcn.100755e2
add esp, 4
xor eax, eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], esi
mov word [esp + 0x54], ax
mov dword [esp + 0x4c0], 0xffffffff
cmp dword [esp + 0x84], ebx
jb 0x10058027
mov ecx, dword [esp + 0x70]
push ecx
call fcn.100755e2
add esp, 4
xor edx, edx
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], esi
mov word [esp + 0x70], dx
lea eax, [edx + 1]
jmp 0x10057fb2
cmp ebx, edi
je 0x10057fb0
xor eax, eax
mov word [esp + 0x18], ax
lea eax, [esp + 0xa4]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10058070
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa8]
lea esi, [esp + 0x18]
call fcn.10007450
mov dword [esp + 0x4c0], 6
mov ecx, esi
push ecx
lea edx, [esp + 0x54]
push edx
mov edi, str.DRIVERS_
call fcn.1002d500
mov byte [esp + 0x4c8], 7
push eax
lea eax, [esp + 0x3c]
push eax
mov edi, ebx
call fcn.1002d500
mov ebx, 8
mov byte [esp + 0x4d0], bl
push eax
lea ecx, [esp + 0x80]
push ecx
mov edi, str..SYS
call fcn.1002d500
add esp, 0x18
mov byte [esp + 0x4c0], 0xa
cmp dword [esp + 0x48], ebx
jb 0x100580ff
mov edx, dword [esp + 0x34]
push edx
call fcn.100755e2
add esp, 4
mov edi, 7
xor esi, esi
xor eax, eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], esi
mov word [esp + 0x34], ax
mov byte [esp + 0x4c0], 0xb
cmp dword [esp + 0x68], ebx
jb 0x10058130
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], esi
mov word [esp + 0x54], dx
mov byte [esp + 0x4c0], 0xc
cmp dword [esp + 0x2c], ebx
jb 0x1005815a
mov eax, dword [esp + 0x18]
push eax
call fcn.100755e2
add esp, 4
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x1c], cx
push esi
lea eax, [esp + 0x74]
mov ecx, ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
call fcn.100073a0
lea esi, [ebp + 4]
cmp dword [ebp + 0x18], ebx
jb 0x10058183
mov eax, dword [esi]
jmp 0x10058185
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10058302
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x50]
call fcn.10006660
mov byte [esp + 0x4c0], 0xd
push eax
lea edx, [esp + 0x18]
push edx
mov edi, str.DRIVERS_
call fcn.1002d500
mov byte [esp + 0x4c8], 0xe
mov edi, dword [esp + 0x54]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.1002d500
mov byte [esp + 0x4d0], 0xf
push eax
lea ecx, [esp + 0x9c]
push ecx
mov edi, str..DLL
call fcn.1002d500
add esp, 0x18
mov byte [esp + 0x4c0], 0x11
cmp dword [esp + 0x48], ebx
jb 0x1005820c
mov edx, dword [esp + 0x34]
push edx
call fcn.100755e2
add esp, 4
mov edi, 7
xor eax, eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov byte [esp + 0x4c0], 0x12
cmp dword [esp + 0x2c], ebx
jb 0x1005823f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.100755e2
add esp, 4
xor edx, edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 0
mov word [esp + 0x18], dx
mov byte [esp + 0x4c0], 0x13
cmp dword [esp + 0x68], ebx
jb 0x1005826d
mov eax, dword [esp + 0x54]
push eax
call fcn.100755e2
add esp, 4
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x58], cx
push ecx
lea eax, [esp + 0x90]
mov ecx, ebp
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], 0
call fcn.100073a0
cmp dword [ebp + 0x18], ebx
jb 0x10058298
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100582d0
mov byte [esp + 0x4c0], 0xc
lea esi, [esp + 0x88]
call fcn.100531f0
mov dword [esp + 0x4c0], 0xffffffff
lea esi, [esp + 0x6c]
call fcn.100531f0
jmp 0x10057fb0
mov byte [esp + 0x4c0], 0xc
lea esi, [esp + 0x88]
call fcn.100531f0
mov dword [esp + 0x4c0], 0xffffffff
lea esi, [esp + 0x6c]
call fcn.100531f0
mov eax, 1
jmp 0x10057fb2
mov dword [esp + 0x4c0], 0xffffffff
cmp dword [esp + 0x84], ebx
jb 0x10058323
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], edi
mov dword [esp + 0x80], 0
mov eax, 1
jmp 0x10057fb2