Function at 0x401e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc28
mov eax, dword [0x4120c0]
xor eax, esp
mov dword [esp + 0xc24], eax
mov eax, dword [esp + 0xc2c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push edi
push str.MSI_FILE
mov edi, ecx
push 0xa7
push edi
mov dword [esp + 0x34], eax
call ebp
test eax, eax
je 0x401ec3
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call ebx
test eax, eax
jne 0x401f31
cmp byte [esp + 0xc44], 0
jne 0x401f27
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x100
lea ecx, [esp + 0x38]
push ecx
push 0x64
push edi
call esi
test eax, eax
jne 0x401eed
xor edx, edx
mov word [esp + 0x34], dx
push 0x100
lea eax, [esp + 0x238]
push eax
push 0xa6
push edi
call esi
test eax, eax
jne 0x401f10
xor ecx, ecx
mov word [esp + 0x234], cx
push 0x10
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x23c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x67
jmp 0x40234c
mov cl, byte [esp + 0xc40]
xor edx, edx
test cl, cl
setne dl
mov edx, dword [eax + edx*4]
mov dword [esp + 0x30], edx
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edx
test cl, cl
je 0x401f62
mov ecx, dword [eax + 8]
add eax, 0xc
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
push str.MSI_FILE
push 0x84
push edi
call ebp
mov ebp, eax
test ebp, ebp
je 0x401f86
push ebp
push edi
call esi
push eax
call ebx
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x401ff2
cmp byte [esp + 0xc44], 0
jne 0x401fe8
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x100
lea edx, [esp + 0x238]
push edx
push 0x64
push edi
call esi
test eax, eax
jne 0x401fb4
mov word [esp + 0x234], ax
push 0x100
lea ecx, [esp + 0x38]
push ecx
push 0xa6
push edi
call esi
test eax, eax
jne 0x401fd1
xor edx, edx
mov word [esp + 0x34], dx
push 0x10
lea eax, [esp + 0x238]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x68
jmp 0x40234c
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov dword [esp + 0x20], 0
call ebp
cmp byte [esp + 0xc40], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0
je 0x4021db
push str.MSI_FILE
push 0xa4
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x40204a
push ebx
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
jne 0x4020b9
cmp byte [esp + 0xc44], 0
jne 0x401fe8
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x100
lea edx, [esp + 0x238]
push edx
push 0x64
push edi
call esi
test eax, eax
jne 0x402078
mov word [esp + 0x234], ax
push 0x100
lea ecx, [esp + 0x38]
push ecx
push 0xa6
push edi
call esi
test eax, eax
jne 0x401fd1
push 0x10
lea eax, [esp + 0x238]
push eax
lea ecx, [esp + 0x3c]
xor edx, edx
push ecx
push edx
mov word [esp + 0x44], dx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x68
jmp 0x40234c
push ebx
push edi
call ebp
mov ecx, eax
xor ebx, ebx
xor ebp, ebp
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ecx
mov eax, 0x811c9dc5
jle 0x40212f
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add esi, 4
mov dword [esp + 0x10], edx
mov ecx, dword [esi]
cmp ebx, ecx
jge 0x4020fb
push eax
mov eax, dword [esp + 0x1c]
sub ecx, ebx
push ecx
lea ecx, [eax + ebp]
push ecx
call fcn.00402bc0
add esp, 0xc
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi - 4]
add eax, dword [esp + 0x24]
push edx
push eax
call fcn.00402bc0
mov ecx, dword [esi]
mov edx, ecx
sub edx, ebx
mov ebx, dword [esi + 4]
add esp, 0xc
add ebp, edx
add ebx, ecx
add esi, 0xc
sub dword [esp + 0x10], 1
jne 0x4020e1
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
cmp ebp, ecx
jge 0x402142
push eax
sub ecx, ebp
push ecx
add ebp, esi
push ebp
call fcn.00402bc0
add esp, 0xc
mov ebx, dword [esp + 0x20]
cmp eax, dword [esp + 0x30]
je 0x4021ef
cmp byte [esp + 0xc44], 0
jne 0x4021d1
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x100
lea eax, [esp + 0x38]
push eax
push 0x64
push edi
call esi
test eax, eax
jne 0x40217a
xor ecx, ecx
mov word [esp + 0x34], cx
push 0x100
lea edx, [esp + 0x238]
push edx
push 0x66
push edi
call esi
test eax, eax
jne 0x402198
mov word [esp + 0x234], ax
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x238]
push edx
lea eax, [esp + 0x43c]
push 0x400
push eax
call fcn.00402c40
add esp, 0x10
push 0x10
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x43c]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x69
jmp 0x40234c
push 0x811c9dc5
push eax
push ebx
call fcn.00402bc0
add esp, 0xc
jmp 0x402146
mov eax, dword [esp + 0x28]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
jne 0x4022ab
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x100
lea ecx, [esp + 0x38]
push ecx
push 0x64
push edi
call esi
test eax, eax
jne 0x40223b
xor edx, edx
mov word [esp + 0x34], dx
push 0x100
lea eax, [esp + 0x238]
push eax
push 0xa7
push edi
call esi
test eax, eax
jne 0x40225e
xor ecx, ecx
mov word [esp + 0x234], cx
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x238]
push eax
lea ecx, [esp + 0x43c]
push 0x400
push ecx
call fcn.00402c40
add esp, 0x10
cmp byte [esp + 0xc44], 0
jne 0x4022a1
push 0x10
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x43c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x6b
jmp 0x40234c
cmp byte [esp + 0xc40], 0
je 0x402335
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x1c], edi
jle 0x402322
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add esi, 4
mov dword [esp + 0x14], ecx
mov ebx, dword [esi]
cmp edi, ebx
jge 0x4022ef
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
lea eax, [edx + ebp]
push eax
sub ebx, edi
push ecx
call fcn.00401d60
add esp, 8
mov edx, dword [esi - 4]
add edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov ebx, dword [esi + 4]
push edx
push eax
call fcn.00401d60
mov eax, dword [esi]
mov ecx, eax
sub ecx, edi
mov edi, dword [esi + 4]
add esp, 8
add ebp, ecx
add edi, eax
add esi, 0xc
sub dword [esp + 0x14], 1
jne 0x4022d2
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
cmp ebp, ebx
jge 0x402343
mov edx, dword [esp + 0x18]
sub ebx, ebp
add ebp, edx
push ebp
jmp 0x40233a
push ebx
mov ebx, dword [esp + 0x30]
push esi
call fcn.00401d60
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0xc34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040300f
add esp, 0xc28
ret