Function at 0x4127af
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push edi
and dword [ebp - 0x58], 0
and dword [ebp - 0x4c], 0
and dword [ebp - 0x54], 0
and byte [ebp - 0x14], 0
xor eax, eax
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
and byte [ebp - 0x48], 0
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0x47]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
and dword [ebp - 8], 0
and dword [ebp - 0x5c], 0
and dword [ebp - 0x50], 0
and dword [ebp - 4], 0
cmp dword [0x426af4], 0
je 0x4127fe
push 1
pop eax
jmp 0x412a21
push 0x100
push dword [ebp + 8]
call fcn.004184d0
mov dword [0x426ac8], eax
push 0x100
push dword [ebp + 8]
call fcn.004184d0
mov dword [0x426acc], eax
push 0x100
push dword [ebp + 8]
call fcn.004184d0
mov dword [0x426ad0], eax
push 0x100
push dword [ebp + 8]
call fcn.004184d0
mov dword [0x426ad4], eax
push 0x100
push dword [ebp + 8]
call fcn.004184d0
mov dword [0x426ad8], eax
push 0x100
push dword [ebp + 8]
call fcn.004184d0
mov dword [0x426adc], eax
push 0x100
push dword [ebp + 8]
call fcn.004184d0
mov dword [0x426ae0], eax
push 0x100
push dword [ebp + 8]
call fcn.004184d0
mov dword [0x426ae4], eax
push 0x100
push dword [ebp + 8]
call fcn.004184d0
mov dword [0x426ae8], eax
push 0x100
push dword [ebp + 8]
call fcn.004184d0
mov dword [0x426aec], eax
push 0x104
push dword [0x426ae8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.ismif32.dll
push dword [0x426ae8]
call fcn.00414a32
cmp dword [0x426ac8], 0
je 0x41291b
cmp dword [0x426acc], 0
je 0x41291b
cmp dword [0x426ad0], 0
je 0x41291b
cmp dword [0x426ad4], 0
je 0x41291b
cmp dword [0x426ad8], 0
je 0x41291b
cmp dword [0x426adc], 0
je 0x41291b
cmp dword [0x426ae0], 0
je 0x41291b
cmp dword [0x426aec], 0
jne 0x412922
xor eax, eax
jmp 0x412a21
push 0x4a39
push 0x4a38
push dword [0x4270bc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
push dword [0x4270bc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x58], eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x412966
xor eax, eax
jmp 0x412a21
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00412bed
pop ecx
pop ecx
test eax, eax
jne 0x412980
xor eax, eax
jmp 0x412a21
push dword [0x4269ac]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str._INSMIF.TMP
lea eax, [ebp - 0x48]
push eax
call fcn.00414a32
push 1
lea eax, [ebp - 0x48]
push eax
call fcn.0040f68e
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xffffffff
jne 0x4129b6
xor eax, eax
jmp 0x412a21
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x5c]
call fcn.0040f99c
cmp eax, 0xffffffff
jne 0x4129ce
xor eax, eax
jmp 0x412a21
push dword [ebp - 0x5c]
call fcn.0040f834
cmp eax, 0xffffffff
jne 0x4129df
xor eax, eax
jmp 0x412a21
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0
call fcn.004193a0
mov dword [0x426af8], eax
lea eax, [ebp - 0x48]
push eax
push dword [0x426af8]
call fcn.004198e0
test eax, eax
jne 0x412a0b
xor eax, eax
jmp 0x412a21
lea eax, [ebp - 0x48]
push eax
call fcn.0040f8c9
mov dword [0x426af4], 1
push 1
pop eax
pop edi
leave
ret 4