Function at 0x4068c0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41615e
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x41d358]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x41d358]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
lea ecx, [esp + 0x18]
call fcn.00402660
push 0
mov dword [esp + 0xe4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x406b4d
cmp dword [esp + 0x28], 0
je 0x406b4d
push str.MSIFile
push 0x89
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40695d
cmp dword [esp + 0x2c], 8
jb 0x406b61
mov eax, dword [esp + 0x18]
push eax
jmp 0x406b59
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x406980
cmp dword [esp + 0x2c], 8
jb 0x406b61
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x406b59
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [esp + 0x2c], 8
mov ebx, eax
mov eax, dword [esp + 0x18]
jae 0x4069a2
lea eax, [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea edx, [esp + 0x18]
push edx
push edi
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], edi
jne 0x406b4d
mov eax, 7
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], cx
mov dword [esp + 0xac], eax
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], dx
lea ecx, [esp + 0xb4]
mov byte [esp + 0xe0], 1
call fcn.00401de0
mov edi, eax
lea esi, [esp + 0x7c]
mov byte [esp + 0xe0], 2
call fcn.00403710
lea esi, [esp + 0xb4]
mov byte [esp + 0xe0], 1
call fcn.00402c80
cmp dword [esp + 0x8c], ebx
je 0x406aa2
lea eax, [esp + 0x98]
push eax
mov eax, 0x41a958
call fcn.00402cb0
lea ebx, [esp + 0x18]
lea edi, [esp + 0xb4]
call fcn.00402720
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0xa0]
mov byte [esp + 0xe8], 8
call fcn.00403780
mov esi, edi
call fcn.00402c80
xor ebx, ebx
mov eax, 7
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x34], vtable.Process.0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], cx
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], dx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], ebx
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x34]
mov byte [esp + 0xe0], 9
call fcn.00404e20
lea edi, [esp + 0x34]
call fcn.00404f50
test al, al
je 0x406b3b
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x406b0c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x74]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, dword [esp + 0x74]
lea ecx, [esp + 0x34]
call fcn.00404db0
lea esi, [esp + 0x7c]
call fcn.00401c50
lea esi, [esp + 0x18]
call fcn.00402c80
mov eax, edi
jmp 0x406b66
lea ecx, [esp + 0x34]
call fcn.00404db0
lea esi, [esp + 0x7c]
call fcn.00401c50
cmp dword [esp + 0x2c], 8
jb 0x406b61
mov edx, dword [esp + 0x18]
push edx
call fcn.00408630
add esp, 4
mov eax, 0x643
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.004084ab
mov esp, ebp
pop ebp
ret