Function at 0x40119c
Capabilities:
Get common file path

Disassembly:
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret
call fcn.0040d2c0
test eax, eax
jne 0x401258
push 0x80
cmp dword [0x42e83c], eax
je 0x401221
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40126e
xor eax, eax
lea ecx, [ecx]
mov cl, byte [ebp + eax - 0x84]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x4011d0
push str.Inf
lea ecx, [ebp - 0x104]
push 0x80
push ecx
call fcn.0040e9c0
lea eax, [ebp - 0x84]
add esp, 0xc
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401203
mov edx, dword [str._system]
mov ecx, dword [0x421360]
mov dword [eax], edx
mov dword [eax + 4], ecx
jmp 0x4012e7
lea edx, [ebp - 0x84]
push edx
push str.SysDir
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040d7a0
add esp, 0x14
test eax, eax
jne 0x4012e7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40128e
push str.GetInfFile
call sym.Prounstl.exe_public:_void___thiscall_std::_String_val_char__class_std::allocator_char__::destructor_void_
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret
xor eax, eax
mov cl, byte [ebp + eax - 0x84]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x401290
push str.Inf
lea ecx, [ebp - 0x104]
push 0x80
push ecx
call fcn.0040e9c0
lea eax, [ebp - 0x84]
add esp, 0xc
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4012c3
mov edx, dword [str._system32]
mov ecx, dword [0x421310]
mov dword [eax], edx
mov dx, word [0x421314]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [ebp - 0x84]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4012f0
sub eax, edx
mov edx, eax
mov eax, dword [ebp - 0x790]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401304
sub eax, esi
add edx, eax
mov eax, dword [ebp + 0x10]
dec eax
cmp edx, eax
ja 0x40127b
mov edi, dword [ebp - 0x790]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
lea ecx, [ebp - 0x84]
push ecx
push 0x421304
push ebx
call esi
add esp, 0x10
push 0x4000
lea edx, [ebp - 0x78c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x401179
push edi
lea eax, [ebp - 0x104]
push eax
push 0x421304
push ebx
call esi
add esp, 0x10
push 0x4000
lea ecx, [ebp - 0x78c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x401179
cmp dword [0x42e834], 0
jne 0x4013f5
mov eax, dword [0x42e82c]
push 0x200
lea edx, [ebp - 0x504]
push edx
push 0x9a
push eax
call fcn.00408d30
add esp, 0x10
test eax, eax
je 0x4013f5
mov edx, dword [0x42e82c]
push 0x200
lea ecx, [ebp - 0x304]
push ecx
push 0x9b
push edx
call fcn.00408d30
add esp, 0x10
test eax, eax
je 0x4013f5
lea eax, [ebp - 0x304]
push eax
push ebx
lea ecx, [ebp - 0x504]
push ecx
lea edx, [ebp - 0x704]
push str._s__s._n_s
push edx
call esi
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret