Function at 0x107d72b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x744
mov eax, dword [0x1099a38]
and dword [ebp - 0x724], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x72c], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x730], eax
mov eax, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x734], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x720]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x107da50
push esi
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x107da50
lea eax, [ebp - 0x744]
push eax
push 0
push ebx
push edi
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindFirstLineA]
test eax, eax
je 0x107da3e
xor edi, edi
push edi
push esi
lea eax, [ebp - 0x108]
push eax
push 1
lea eax, [ebp - 0x744]
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetStringFieldA]
test eax, eax
je 0x107da3e
mov ebx, 0x103
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
push 2
lea eax, [ebp - 0x744]
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetStringFieldA]
test eax, eax
jne 0x107d809
mov cl, byte [ebp + eax - 0x108]
mov byte [ebp + eax - 0x20c], cl
inc eax
test cl, cl
jne 0x107d7f6
cmp dword [ebp + 0x14], edi
je 0x107d9de
push esi
lea eax, [ebp - 0x310]
push eax
push 0x100a5dc
lea eax, [ebp - 0x518]
push eax
call fcn.01070fc9
push esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.01070fc9
push edi
lea eax, [ebp - 0x61c]
push eax
call fcn.01073f21
test eax, eax
je 0x107d9de
cmp dword [0x10f5488], 1
jne 0x107d8ea
mov dword [ebp - 0x728], edi
lea eax, [ebp - 0x724]
push eax
push dword [ebp - 0x728]
push dword [0x10f548c]
call fcn.01083b4f
inc dword [ebp - 0x728]
test eax, eax
je 0x107d9de
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x724]
add eax, 0x104
push eax
call sub.msvcrt.dll__stricmp
test eax, eax
pop ecx
pop ecx
jne 0x107d8e1
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x724]
push esi
add eax, 0x208
push eax
call fcn.0108c975
push dword [ebp - 0x724]
lea eax, [ebp - 0x108]
push esi
xor edi, edi
push eax
inc edi
call fcn.0108c975
test edi, edi
je 0x107d86e
jmp 0x107d9de
lea eax, [ebp - 0x108]
push eax
push 0
lea eax, [ebp - 0x310]
push eax
push 0x10191ec
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.01037486
add esp, 0x18
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.01073f21
test eax, eax
je 0x107d962
cmp edi, 0xa
jge 0x107d960
lea eax, [ebp - 0x108]
push eax
push edi
lea eax, [ebp - 0x310]
push eax
push 0x10191ec
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.01037486
add esp, 0x18
push 0
lea eax, [ebp - 0x414]
push eax
inc edi
call fcn.01073f21
test eax, eax
jne 0x107d921
cmp edi, 0xa
je 0x107d9de
push 0x30c
lea eax, [ebp - 0x724]
push eax
push dword [0x10f548c]
call fcn.01083ae4
test eax, eax
je 0x107d9de
lea eax, [ebp - 0x108]
push eax
push edi
push 0x10191e0
push esi
push dword [ebp - 0x724]
call fcn.01037486
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x724]
push esi
add eax, 0x104
push eax
call fcn.0108c975
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x724]
push esi
add eax, 0x208
push eax
call fcn.0108c975
push dword [ebp - 0x724]
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0108c975
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x734]
push dword [ebp + 0x1c]
push dword [ebp - 0x730]
push dword [ebp - 0x72c]
call fcn.0107d3b3
test eax, eax
je 0x107da50
lea eax, [ebp - 0x744]
push eax
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindNextLine]
test eax, eax
je 0x107da3e
xor edi, edi
push edi
push esi
lea eax, [ebp - 0x108]
push eax
push 1
lea eax, [ebp - 0x744]
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetStringFieldA]
test eax, eax
jne 0x107d7da
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0x1c
xor eax, eax
jmp 0x107da41