Function at 0x403570
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
xor ebx, ebx
cmp byte [0x4187a0], bl
je 0x40380c
push esi
push edi
push str.ismif32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403601
push str.InstallStatusMIF
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x4035fa
mov ecx, dword [0x418738]
cmp ecx, ebx
mov edx, str.Uninstall_canceled_by_user
jne 0x4035c1
mov edx, str.Uninstall_successful
xor eax, eax
cmp ecx, ebx
sete al
push eax
push edx
push 0x4189a0
push 0x414c50
push 0x418920
push 0x4188a0
push 0x418820
push 0x4187a0
call esi
test eax, eax
je 0x4035fa
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40380a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push pe_nt_image_headers32
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x144]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x403641
push 0x414474
lea eax, [ebp - 0x144]
push eax
call esi
push 0x4187a0
lea eax, [ebp - 0x144]
push eax
call esi
push ebx
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40380a
push dword [0x418a24]
push 0x4000
push dword [0x418740]
push 0x4145d4
push str.Msg1000
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [0x418740]
cmp byte [ecx], 0x7f
jne 0x4036ad
cmp eax, 1
jne 0x4036ad
push str.START_COMPONENT_r_n__NAME___WORKSTATION__r_n__START_GROUP_r_n____NAME___ComponentID__r_n____ID__1_r_n____CLASS___DMTFComponentID1.0__r_n____START_ATTRIBUTE_r_n______NAME___Manufacturer__r_n______ID__1_r_n______ACCESS__READ_ONLY_r_n______STORAGE__SPECIFIC_r_n______TYPE__STRING_255__r_n______VALUE____1___r_n____END_ATTRIBUTE_r_n____START_ATTRIBUTE_r_n______NAME___Product__r_n______ID__2_r_n______ACCESS__READ_ONLY_r_n______STORAGE__SPECIFIC_r_n______TYPE__STRING_255__r_n______VALUE____2___r_n____END_ATTRIBUTE_r_n____START_ATTRIBUTE_r_n______NAME___Version__r_n______ID__3_r_n______ACCESS__READ_ONLY_r_n______STORAGE__SPECIFIC_r_n______TYPE__STRING_255__r_n______VALUE____3___r_n____END_ATTRIBUTE_r_n____START_ATTRIBUTE_r_n______NAME___Serial_Number__r_n______ID__4_r_n______ACCESS__READ_ONLY_r_n______STORAGE__SPECIFIC_r_n______TYPE__STRING_255__r_n______VALUE____4___r_n____END_ATTRIBUTE_r_n____START_ATTRIBUTE_r_n______NAME____5___r_n______ID__5_r_n______ACCESS__READ_ONLY_r_n______STORAGE__SPECIFIC_r_n______TYPE__STRING_255__r_n______VALUE____6___r_n____END_ATTRIBUTE_r_n__END_GROUP_r_n__START_GROUP_r_n____NAME____5_Status__r_n____ID__2_r_n____CLASS___MICROSOFTJOBSTATUS1.0__r_n____START_ATTRIBUTE_r_n______NAME___Status__r_n______ID__1_r_n______ACCESS__READ_ONLY_r_n______STORAGE__SPECIFIC_r_n______TYPE__STRING_255__r_n______VALUE____7___r_n____END_ATTRIBUTE_r_n____START_ATTRIBUTE_r_n______NAME___Description__r_n______ID__2_r_n______ACCESS__READ_ONLY_r_n______STORAGE__SPECIFIC_r_n______TYPE__STRING_255__r_n______VALUE____8___r_n____END_ATTRIBUTE_r_n__END_GROUP_r_nEND_COMPONENT_r_n
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4036e3
push 0x5e
push ecx
jmp 0x4036d8
cmp byte [eax], bl
mov ecx, eax
je 0x4036bf
inc ecx
cmp byte [ecx], bl
jne 0x4036b8
jmp 0x4036c5
mov dl, byte [ecx]
mov byte [ecx + 1], dl
dec ecx
cmp ecx, eax
jae 0x4036bf
push 0x5e
mov byte [eax], 0xd
mov byte [eax + 1], 0xa
push dword [0x418740]
call fcn.004025e3
cmp eax, ebx
pop ecx
pop ecx
jne 0x4036b2
lea eax, [ebp - 0x44]
push eax
call fcn.00401e61
mov esi, dword [0x418740]
mov al, byte [esi]
cmp al, bl
pop ecx
je 0x4037e5
mov edi, dword [ebp - 4]
cmp al, 0x25
jne 0x4037da
mov al, byte [esi + 1]
cmp al, 0x31
jl 0x4037da
cmp al, 0x38
jg 0x4037da
cmp byte [esi + 2], 0x25
jne 0x4037da
cmp al, 0x34
jg 0x40373a
movsx edi, al
sub edi, 0x30
shl edi, 7
add edi, 0x4187a0
jmp 0x40378d
cmp al, 0x35
jne 0x403754
cmp dword [0x41869c], ebx
je 0x40374d
mov edi, str.Rollback
jmp 0x40378d
mov edi, str.Uninstall
jmp 0x40378d
cmp al, 0x36
jne 0x40375d
lea edi, [ebp - 0x44]
jmp 0x40378d
cmp al, 0x37
jne 0x403777
cmp dword [0x418738], ebx
je 0x403770
mov edi, str.Failed
jmp 0x40378d
mov edi, str.Success
jmp 0x40378d
cmp al, 0x38
jne 0x40378d
cmp dword [0x418738], ebx
mov edi, str.Canceled_by_user
jne 0x40378d
mov edi, 0x41461e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 3
cmp eax, ebx
jle 0x4037b9
lea edx, [esi + 3]
mov ecx, edx
jmp 0x4037a3
inc ecx
cmp byte [ecx], bl
jne 0x4037a2
cmp ecx, edx
jb 0x4037d3
mov bl, byte [ecx]
mov byte [ecx + eax], bl
dec ecx
cmp ecx, edx
jae 0x4037ab
xor ebx, ebx
jmp 0x4037d3
jge 0x4037d3
lea ecx, [esi + 3]
jmp 0x4037c4
mov byte [ecx + eax], dl
inc ecx
mov dl, byte [ecx]
cmp dl, bl
jne 0x4037c0
mov byte [ecx + eax], bl
jmp 0x4037d3
mov byte [esi], al
inc esi
inc edi
mov al, byte [edi]
cmp al, bl
jne 0x4037cf
dec esi
inc esi
mov al, byte [esi]
cmp al, bl
jne 0x403700
push dword [0x418740]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [0x418740]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll__lwrite]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
pop ebx
leave
ret