Function at 0x40d0f5
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 [0x424784], 0
je 0x40d144
push 1
pop eax
jmp 0x40d367
push 0x100
push dword [ebp + 8]
call fcn.00403130
mov dword [0x424758], eax
push 0x100
push dword [ebp + 8]
call fcn.00403130
mov dword [0x42475c], eax
push 0x100
push dword [ebp + 8]
call fcn.00403130
mov dword [0x424760], eax
push 0x100
push dword [ebp + 8]
call fcn.00403130
mov dword [0x424764], eax
push 0x100
push dword [ebp + 8]
call fcn.00403130
mov dword [0x424768], eax
push 0x100
push dword [ebp + 8]
call fcn.00403130
mov dword [0x42476c], eax
push 0x100
push dword [ebp + 8]
call fcn.00403130
mov dword [0x424770], eax
push 0x100
push dword [ebp + 8]
call fcn.00403130
mov dword [0x424774], eax
push 0x100
push dword [ebp + 8]
call fcn.00403130
mov dword [0x424778], eax
push 0x100
push dword [ebp + 8]
call fcn.00403130
mov dword [0x42477c], eax
push 0x104
push dword [0x424778]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.ismif32.dll
push dword [0x424778]
call fcn.00409bba
cmp dword [0x424758], 0
je 0x40d261
cmp dword [0x42475c], 0
je 0x40d261
cmp dword [0x424760], 0
je 0x40d261
cmp dword [0x424764], 0
je 0x40d261
cmp dword [0x424768], 0
je 0x40d261
cmp dword [0x42476c], 0
je 0x40d261
cmp dword [0x424770], 0
je 0x40d261
cmp dword [0x42477c], 0
jne 0x40d268
xor eax, eax
jmp 0x40d367
push 0x4a39
push 0x4a38
push dword [0x425860]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
push dword [0x425860]
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 0x40d2ac
xor eax, eax
jmp 0x40d367
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040d533
pop ecx
pop ecx
test eax, eax
jne 0x40d2c6
xor eax, eax
jmp 0x40d367
push dword [0x424674]
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.00409bba
push 1
lea eax, [ebp - 0x48]
push eax
call fcn.00417eac
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xffffffff
jne 0x40d2fc
xor eax, eax
jmp 0x40d367
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x5c]
call fcn.004181ba
cmp eax, 0xffffffff
jne 0x40d314
xor eax, eax
jmp 0x40d367
push dword [ebp - 0x5c]
call fcn.00418052
cmp eax, 0xffffffff
jne 0x40d325
xor eax, eax
jmp 0x40d367
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0
call fcn.0041de20
mov dword [0x424788], eax
lea eax, [ebp - 0x48]
push eax
push dword [0x424788]
call fcn.0041e360
test eax, eax
jne 0x40d351
xor eax, eax
jmp 0x40d367
lea eax, [ebp - 0x48]
push eax
call fcn.004180e7
mov dword [0x424784], 1
push 1
pop eax
pop edi
leave
ret 4