Function at 0x100bc43
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x530
push ebx
push esi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x42c]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x100bc7c
push ebx
lea eax, [ebp - 0x530]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x100bc83
xor eax, eax
jmp 0x100bfad
push edi
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x100bfa4
push esi
jmp 0x100bf4a
push 0
push ebx
lea eax, [ebp - 0x224]
push eax
push 2
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
jne 0x100bcd0
mov cl, byte [ebp + eax - 0x120]
mov byte [ebp + eax - 0x224], cl
inc eax
test cl, cl
jne 0x100bcbd
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100bd2e
lea edx, [ebp - 0x328]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100bcdf
lea eax, [ebp - 0x120]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100bcf1
lea edi, [ebp - 0x328]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100bd01
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov cl, byte [ebp + eax - 0x328]
mov byte [ebp + eax - 0x120], cl
inc eax
test cl, cl
jne 0x100bd1b
and byte [0x10339e0], 0
and byte [0x10239e0], 0
mov esi, 0xfffa
push esi
mov edi, 0x10239e0
push edi
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.0100777d
push esi
mov esi, 0x10339e0
push esi
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0xc]
call fcn.0100777d
push edi
push esi
call fcn.01003cd3
test eax, eax
je 0x100bf84
and byte [0x10339e0], 0
and byte [0x10229c0], 0
xor eax, eax
mov cl, byte [eax + 0x10239e0]
mov byte [eax + 0x10339e0], cl
inc eax
test cl, cl
jne 0x100bd90
and byte [0x10239e0], cl
push 0x1000
push 0x10229c0
push 0x10029d8
lea eax, [ebp - 0x530]
push eax
call fcn.0100777d
push 0xfffa
push edi
lea eax, [ebp - 0x120]
push eax
push 0x10229c0
call fcn.0100777d
cmp dword [ebp + 0x20], 0
je 0x100bea0
push 0x208
call sub.msvcrt.dll_malloc
mov dword [ebp + 0x10], eax
mov dword [esp], 0x208
call sub.msvcrt.dll_malloc
pop ecx
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
mov dword [ebp + 8], eax
je 0x100bea0
cmp eax, ecx
je 0x100bea0
push ebx
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp + 8]
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 0x10]
call fcn.0100a565
push edi
mov dword [ebp + 8], eax
call fcn.0100a565
push dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
call fcn.0100a635
push edi
mov dword [ebp - 8], eax
call fcn.0100a635
cmp dword [ebp - 8], eax
jb 0x100be90
cmp dword [ebp + 8], 0
je 0x100be90
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x100be90
cmp dword [ebp - 8], eax
ja 0x100bf88
cmp dword [ebp + 8], ecx
ja 0x100bf88
jne 0x100be90
push edi
push dword [ebp + 0x10]
call fcn.0100ac1a
test eax, eax
je 0x100bf68
push dword [ebp + 0x10]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_free
pop ecx
pop ecx
cmp dword [ebp - 4], 0
jne 0x100bf2a
push 0x208
call sub.msvcrt.dll_malloc
test eax, eax
pop ecx
mov dword [ebp + 0x10], eax
je 0x100bf2a
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
push dword [ebp + 0x10]
call fcn.010095ad
test eax, eax
mov dword [ebp - 4], eax
jne 0x100bf2a
push 0x208
call sub.msvcrt.dll_malloc
test eax, eax
pop ecx
mov dword [ebp + 8], eax
je 0x100bf2a
push ebx
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x120]
push eax
push 0
push 0
call edi
push 0
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.01009617
xor ecx, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x24]
inc ecx
cmp dword [eax], ecx
je 0x100bf21
cmp dword [ebp - 4], 0
jne 0x100bf21
mov dword [eax], ecx
push dword [ebp + 8]
call sub.msvcrt.dll_free
pop ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call fcn.0100a705
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x100bfa4
push 0
push ebx
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x1c]
push 1
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
jne 0x100bca3
jmp 0x100bfa4
push dword [ebp + 0x10]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_free
pop ecx
pop ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call fcn.0100a705
xor eax, eax
jmp 0x100bfac
push dword [ebp + 0x10]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_free
pop ecx
pop ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call fcn.0100a705
xor eax, eax
cmp dword [ebp - 4], eax
sete al
pop edi
pop esi
pop ebx
leave
ret 0x20