Function at 0x1007a342
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x25c], ebx
mov ebx, ecx
mov edi, eax
xor eax, eax
push ebp
push 0x1007a71d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.10065a0a
call sub.KERNEL32.dll_GetLastError
mov esi, eax
lea edx, [ebp - 0x3c]
mov eax, fcn.1007a342
call fcn.10072db6
test al, al
je 0x1007a6f9
test edi, edi
je 0x1007a6f4
mov eax, edi
call fcn.10079a76
mov dword [ebp - 8], eax
call fcn.1006d70e
test eax, eax
je 0x1007a3bb
mov eax, edi
call fcn.10079ac6
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x1007a3c9
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp - 8], 0
jne 0x1007a3df
cmp dword [ebp - 0xc], 0
jne 0x1007a3d9
cmp dword [ebp - 0x10], 0
je 0x1007a6f4
cmp dword [ebp - 0xc], 0
jne 0x1007a3e9
cmp dword [ebp - 0x10], 0
je 0x1007a4dc
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add eax, 0x20
adc edx, 0
push edx
push eax
lea edx, [ebp - 0x28]
mov ecx, 8
mov eax, edi
call fcn.10079b32
test al, al
je 0x1007a5a6
cmp dword [ebp - 0x24], 0
jne 0x1007a41e
cmp dword [ebp - 0x28], 0
je 0x1007a5a6
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add eax, 8
adc edx, 0
push edx
push eax
lea edx, [ebp - 0x2c]
mov ecx, 4
mov eax, edi
call fcn.10079b32
test al, al
je 0x1007a5a6
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add eax, 0x70
adc edx, 0
push edx
push eax
lea edx, [ebp - 0x4c]
mov ecx, 0x10
mov eax, edi
call fcn.10079b32
test al, al
je 0x1007a5a6
cmp word [ebp - 0x4c], 0
jbe 0x1007a5a6
cmp dword [ebp - 0x40], 0
jne 0x1007a483
cmp dword [ebp - 0x44], 0
je 0x1007a5a6
test byte [ebp - 0x2c], 1
jne 0x1007a4a1
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
add eax, dword [ebp - 0x28]
adc edx, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
movzx edx, word [ebp - 0x4c]
shr edx, 1
mov eax, ebx
call fcn.10065e3a
push dword [ebp - 0x40]
push dword [ebp - 0x44]
mov eax, dword [ebx]
call fcn.10065bb2
mov edx, eax
movzx ecx, word [ebp - 0x4c]
mov eax, edi
call fcn.10079b32
test al, al
jne 0x1007a5a6
mov eax, ebx
call fcn.10065a0a
jmp 0x1007a5a6
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
add eax, 0x10
push eax
push edi
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x1007a5a6
cmp dword [ebp - 4], 4
jne 0x1007a5a6
cmp dword [ebp - 0x14], 0
je 0x1007a5a6
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
push edi
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x1007a5a6
cmp dword [ebp - 4], 4
jne 0x1007a5a6
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x40
push eax
push edi
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x1007a5a6
cmp dword [ebp - 4], 8
jne 0x1007a5a6
cmp word [ebp - 0x1c], 0
jbe 0x1007a5a6
cmp dword [ebp - 0x18], 0
je 0x1007a5a6
test byte [ebp - 0x2c], 1
jne 0x1007a56a
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x18], eax
movzx edx, word [ebp - 0x1c]
shr edx, 1
mov eax, ebx
call fcn.10065e3a
lea eax, [ebp - 4]
push eax
movzx eax, word [ebp - 0x1c]
push eax
mov eax, dword [ebx]
call fcn.10065bb2
push eax
mov eax, dword [ebp - 0x18]
push eax
push edi
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x1007a59f
movzx eax, word [ebp - 0x1c]
cmp eax, dword [ebp - 4]
je 0x1007a5a6
mov eax, ebx
call fcn.10065a0a
mov eax, dword [ebx]
call fcn.10065bb2
mov edx, eax
mov eax, ebx
call fcn.10065b32
mov eax, dword [ebx]
call fcn.10065bc2
cmp eax, 4
jle 0x1007a5fb
mov eax, dword [ebx]
cmp word [eax], 0x5c
jne 0x1007a5fb
mov eax, dword [ebx]
cmp word [eax + 2], 0x3f
jne 0x1007a5fb
mov eax, dword [ebx]
cmp word [eax + 4], 0x3f
jne 0x1007a5fb
mov eax, dword [ebx]
cmp word [eax + 6], 0x5c
jne 0x1007a5fb
mov eax, ebx
mov ecx, 4
mov edx, 1
call fcn.10065daa
jmp 0x1007a6f4
mov eax, dword [ebx]
call fcn.10065bc2
cmp eax, 0xc
jle 0x1007a6f4
mov eax, dword [ebx]
cmp word [eax], 0x5c
jne 0x1007a6f4
mov eax, dword [ebx]
cmp word [eax + 2], 0x53
jne 0x1007a6f4
mov eax, dword [ebx]
cmp word [eax + 4], 0x79
jne 0x1007a6f4
mov eax, dword [ebx]
cmp word [eax + 6], 0x73
jne 0x1007a6f4
mov eax, dword [ebx]
cmp word [eax + 8], 0x74
jne 0x1007a6f4
mov eax, dword [ebx]
cmp word [eax + 0xa], 0x65
jne 0x1007a6f4
mov eax, dword [ebx]
cmp word [eax + 0xc], 0x6d
jne 0x1007a6f4
mov eax, dword [ebx]
cmp word [eax + 0xe], 0x52
jne 0x1007a6f4
mov eax, dword [ebx]
cmp word [eax + 0x10], 0x6f
jne 0x1007a6f4
mov eax, dword [ebx]
cmp word [eax + 0x12], 0x6f
jne 0x1007a6f4
mov eax, dword [ebx]
cmp word [eax + 0x14], 0x74
jne 0x1007a6f4
mov eax, dword [ebx]
cmp word [eax + 0x16], 0x5c
jne 0x1007a6f4
push 0x104
lea eax, [ebp - 0x254]
push eax
call sub.KERNEL32.dll_GetWindowsDirectoryW
mov word [ebp + eax*2 - 0x254], 0
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebx]
mov ecx, 0x7fffffff
mov edx, 0xc
call fcn.10065d5e
mov eax, dword [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
lea edx, [ebp - 0x254]
mov ecx, 0x104
call fcn.10065b86
mov edx, dword [ebp - 0x25c]
mov eax, ebx
pop ecx
call fcn.10065c2e
xor eax, eax
mov dword [ebp - 0x30], eax
push esi
call sub.KERNEL32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1007a724
lea eax, [ebp - 0x25c]
mov edx, 2
call fcn.10065a22
ret