Function at 0x40bb3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov dword [ebp - 0xc], 0xc
push ebx
push esi
push edi
lea eax, [ebp - 0x420]
xor edi, edi
push 0x208
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
jne 0x40bbf8
push edi
lea eax, [ebp - 0x218]
push eax
mov esi, dword [ebp + 8]
push edi
push edi
push esi
call fcn.0040d550
add esp, 0x14
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.0040b8df
add esp, 4
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
lea eax, [ebp - 0x18]
push 0x411678
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str..MIF
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call fcn.0040b922
add esp, 4
test eax, eax
je 0x40bbfb
test ebx, ebx
jne 0x40bbfb
inc edi
cmp edi, 0x3e7
jle 0x40bb8a
jmp 0x40be55
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0xc]
push ebx
push 0x80000080
push 2
push eax
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, eax
je 0x40be55
push dword [ebp + 0x14]
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x118]
cmp byte [ebp - 0x118], bl
je 0x40bc5a
mov cl, byte [eax]
cmp cl, 0xa
je 0x40bc4b
cmp cl, 0xd
jne 0x40bc4e
mov byte [eax], 0x20
push eax
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0
jne 0x40bc3f
push str.Start_Component_r_n
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push str._tName___Workstation__r_n
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push str._tStart_Group_r_n
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push str._t_tName___InstallStatus__r_n
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push str._t_tID__1_r_n
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push str._t_tClass___MICROSOFTJOBSTATUS1.0__r_n
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push str._t_tStart_Attribute_r_n
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push str._t_t_tName___Status__r_n
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push str._t_t_tID__1_r_n
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push str._t_t_tType__String_16__r_n
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push str._t_t_tValue_
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
cmp dword [ebp + 0x10], 0
mov eax, str._SUCCESS__r_n
jne 0x40bd5c
mov eax, str._FAILED__r_n
push eax
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
mov edi, str._t_tEnd_Attribute_r_n
push edi
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push str._t_tStart_Attribute_r_n
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push str._t_t_tName___Description__r_n
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push str._t_t_tID__2_r_n
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push str._t_t_tType__String_256__r_n
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push str._t_t_tValue_
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
lea eax, [ebp - 0x118]
push eax
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push 0x41059c
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push edi
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push str._tEnd_Group_r_n
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push str.End_Component_r_n
push esi
call fcn.0040b82d
add esp, 8
test eax, eax
je 0x40be4e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40be55
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret