Function at 0x107d3b3
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x424], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x107d41d
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x107d424
xor eax, eax
jmp 0x107d71e
push ebx
push edi
mov edi, 0xfffa
push edi
mov ebx, 0x10f6960
push ebx
push dword [ebp - 0x424]
lea eax, [ebp - 0x108]
push eax
mov byte [0x1106960], 0
mov byte [0x10f6960], 0
call fcn.01070fc9
push edi
push 0x1106960
push dword [ebp - 0x41c]
push dword [ebp - 0x418]
call fcn.01070fc9
push ebx
push 0x1106960
call int.0103a535
test eax, eax
je 0x107d71c
mov byte [0x1106960], 0
mov byte [0x10f5820], 0
xor eax, eax
mov cl, byte [eax + 0x10f6960]
mov byte [eax + 0x1106960], cl
inc eax
test cl, cl
jne 0x107d48c
push 0x1000
push 0x10f5820
push 0x100a5dc
lea eax, [ebp - 0x20c]
push eax
mov byte [0x10f6960], cl
call fcn.01070fc9
push edi
push ebx
push dword [ebp - 0x424]
push 0x10f5820
call fcn.01070fc9
cmp dword [ebp + 0x10], 0
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
je 0x107d64b
push 0x208
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x420], eax
mov dword [esp], 0x208
call sub.msvcrt.dll_malloc
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x420], ecx
mov dword [ebp - 0x418], eax
je 0x107d64b
cmp eax, ecx
je 0x107d64b
push esi
push dword [ebp - 0x420]
push 0xffffffffffffffff
push ebx
push ecx
push ecx
call edi
push esi
push dword [ebp - 0x418]
mov ebx, 0x1106960
push 0xffffffffffffffff
push ebx
push 0
push 0
call edi
push dword [ebp - 0x420]
call fcn.0107794d
push dword [ebp - 0x418]
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], edx
call fcn.0107794d
push dword [ebp - 0x420]
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], edx
call fcn.01077a39
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], eax
call fcn.01077a39
cmp dword [ebp - 0x41c], eax
jb 0x107d631
mov ecx, dword [ebp - 0x42c]
or ecx, dword [ebp - 0x428]
je 0x107d631
mov edx, dword [ebp - 0x438]
mov ecx, dword [ebp - 0x434]
or edx, ecx
je 0x107d631
cmp dword [ebp - 0x41c], eax
ja 0x107d62c
cmp dword [ebp - 0x428], ecx
ja 0x107d62c
jb 0x107d5d4
mov eax, dword [ebp - 0x42c]
cmp eax, dword [ebp - 0x438]
ja 0x107d62c
mov eax, dword [ebp - 0x438]
cmp dword [ebp - 0x42c], eax
jne 0x107d631
cmp dword [ebp - 0x428], ecx
jne 0x107d631
push dword [ebp - 0x418]
push dword [ebp - 0x420]
call fcn.0107920c
test eax, eax
jne 0x107d631
xor esi, esi
push dword [ebp - 0x420]
call sub.msvcrt.dll_free
push dword [ebp - 0x418]
call sub.msvcrt.dll_free
pop ecx
pop ecx
push dword [ebp - 0x430]
push ebx
call fcn.0107c243
mov eax, esi
jmp 0x107d71c
xor esi, esi
inc esi
jmp 0x107d601
push dword [ebp - 0x420]
call sub.msvcrt.dll_free
push dword [ebp - 0x418]
call sub.msvcrt.dll_free
pop ecx
pop ecx
jmp 0x107d650
mov ebx, 0x1106960
push esi
lea eax, [ebp - 0x414]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call edi
lea eax, [ebp - 0x414]
push eax
call fcn.01073650
test eax, eax
mov dword [ebp - 0x418], eax
jne 0x107d6f1
push 0x208
call sub.msvcrt.dll_malloc
test eax, eax
pop ecx
mov dword [ebp - 0x41c], eax
je 0x107d705
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x424]
push 0
push 0
call edi
push 0
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push eax
call fcn.010736bc
mov esi, eax
test esi, esi
mov dword [ebp - 0x418], esi
je 0x107d6d0
push esi
push dword [ebp - 0x424]
push 0x10280c8
call fcn.01071ac0
add esp, 0xc
mov eax, dword [ebp - 0x43c]
xor ecx, ecx
inc ecx
cmp dword [eax], ecx
je 0x107d6e3
test esi, esi
jne 0x107d6e3
mov dword [eax], ecx
push dword [ebp - 0x41c]
call sub.msvcrt.dll_free
pop ecx
jmp 0x107d705
push eax
push dword [ebp - 0x424]
push 0x1028078
call fcn.01071ac0
add esp, 0xc
push dword [ebp - 0x430]
push ebx
call fcn.0107c243
xor eax, eax
cmp dword [ebp - 0x418], eax
sete al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0106bc50
leave
ret 0x18