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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101e2db7
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x102683e0]
xor eax, esp
mov dword [esp + 0x290], eax
push esi
mov eax, dword [0x102683e0]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov edx, ecx
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
cmp word [edx], ax
jne 0x10007833
xor ecx, ecx
jmp 0x10007845
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10007836
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x74]
call fcn.10003c10
xor esi, esi
mov dword [esp + 0x2a8], 0
cmp dword [esp + 0x7c], esi
je 0x10007b62
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], esi
mov word [esp + 0x54], ax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], eax
mov word [esp + 0x3c], ax
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x74]
mov byte [esp + 0x2b0], 2
push eax
lea ecx, [esp + 0x48]
call fcn.100040d0
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [esp + 0x3c]
push eax
call esi
test eax, eax
jne 0x100078d6
cmp dword [esp + 0x50], 8
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
xor ecx, ecx
mov word [eax], cx
cmp dword [esp + 0x4c], 0
jne 0x10007adb
cmp dword [esp + 0x68], 8
lea eax, [esp + 0x54]
mov dword [esp + 0x64], 0
cmovae eax, dword [esp + 0x54]
xor ecx, ecx
push 0x104
mov word [eax], cx
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10007924
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x58]
call fcn.100032d0
cmp dword [esp + 0x64], 0
je 0x100079d9
push 0x102285e4
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10004650
lea ecx, [esp + 0x78]
mov byte [esp + 0x2b4], 3
push ecx
mov edx, eax
lea ecx, [esp + 0x1c]
call fcn.10007f10
add esp, 0x10
lea ecx, [esp + 0x3c]
push eax
call fcn.10007bd0
cmp dword [esp + 0x20], 8
jb 0x1000797b
push dword [esp + 0xc]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov byte [esp + 0x2a8], 2
cmp dword [esp + 0x38], 8
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
jb 0x100079ad
push dword [esp + 0x24]
call fcn.101a02f0
add esp, 4
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
push eax
call esi
test eax, eax
jne 0x100079d9
cmp dword [esp + 0x50], 8
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
xor ecx, ecx
mov word [eax], cx
cmp dword [esp + 0x4c], 0
jne 0x10007adb
cmp dword [esp + 0x68], 8
lea eax, [esp + 0x54]
mov dword [esp + 0x64], 0
cmovae eax, dword [esp + 0x54]
xor ecx, ecx
push 0x104
mov word [eax], cx
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x10007a27
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x58]
call fcn.100032d0
cmp dword [esp + 0x64], 0
je 0x10007ad4
push 0x102285e4
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10004650
lea ecx, [esp + 0x78]
mov byte [esp + 0x2b4], 4
push ecx
mov edx, eax
lea ecx, [esp + 0x1c]
call fcn.10007f10
add esp, 0x10
lea ecx, [esp + 0x3c]
push eax
call fcn.10007bd0
cmp dword [esp + 0x20], 8
jb 0x10007a7e
push dword [esp + 0xc]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
cmp dword [esp + 0x38], 8
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
jb 0x10007aa8
push dword [esp + 0x24]
call fcn.101a02f0
add esp, 4
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
push eax
call esi
test eax, eax
jne 0x10007ad4
cmp dword [esp + 0x50], 8
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
xor ecx, ecx
mov word [eax], cx
cmp dword [esp + 0x4c], 0
je 0x10007b0b
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
push eax
call esi
test eax, eax
je 0x10007b0b
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x10007b25
cmp dword [esp + 0x80], 8
lea eax, [esp + 0x6c]
cmovae eax, dword [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp dword [esp + 0x50], 8
jb 0x10007b38
push dword [esp + 0x3c]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
cmp dword [esp + 0x68], 8
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
jb 0x10007b62
push dword [esp + 0x54]
call fcn.101a02f0
add esp, 4
cmp dword [esp + 0x80], 8
jb 0x10007b78
push dword [esp + 0x6c]
call fcn.101a02f0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret