Function at 0x40d109
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 [0x424794], 0
je 0x40d158
push 1
pop eax
jmp 0x40d37b
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 0x100
push dword [ebp + 8]
call fcn.00403130
mov dword [0x424780], eax
push 0x100
push dword [ebp + 8]
call fcn.00403130
mov dword [0x424784], eax
push 0x100
push dword [ebp + 8]
call fcn.00403130
mov dword [0x424788], eax
push 0x100
push dword [ebp + 8]
call fcn.00403130
mov dword [0x42478c], eax
push 0x104
push dword [0x424788]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.ismif32.dll
push dword [0x424788]
call fcn.00409bba
cmp dword [0x424768], 0
je 0x40d275
cmp dword [0x42476c], 0
je 0x40d275
cmp dword [0x424770], 0
je 0x40d275
cmp dword [0x424774], 0
je 0x40d275
cmp dword [0x424778], 0
je 0x40d275
cmp dword [0x42477c], 0
je 0x40d275
cmp dword [0x424780], 0
je 0x40d275
cmp dword [0x42478c], 0
jne 0x40d27c
xor eax, eax
jmp 0x40d37b
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 0x40d2c0
xor eax, eax
jmp 0x40d37b
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040d547
pop ecx
pop ecx
test eax, eax
jne 0x40d2da
xor eax, eax
jmp 0x40d37b
push dword [0x424684]
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.00418015
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xffffffff
jne 0x40d310
xor eax, eax
jmp 0x40d37b
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x5c]
call fcn.00418323
cmp eax, 0xffffffff
jne 0x40d328
xor eax, eax
jmp 0x40d37b
push dword [ebp - 0x5c]
call fcn.004181bb
cmp eax, 0xffffffff
jne 0x40d339
xor eax, eax
jmp 0x40d37b
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0
call fcn.0041e050
mov dword [0x424798], eax
lea eax, [ebp - 0x48]
push eax
push dword [0x424798]
call fcn.0041e590
test eax, eax
jne 0x40d365
xor eax, eax
jmp 0x40d37b
lea eax, [ebp - 0x48]
push eax
call fcn.00418250
mov dword [0x424794], 1
push 1
pop eax
pop edi
leave
ret 4