Function at 0x401a50
Capabilities:
Copy file
Create directory
Delete file
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4204c1
mov eax, dword fs:[0]
push eax
sub esp, 0x9b0
mov eax, dword [0x425544]
xor eax, esp
mov dword [esp + 0x9ac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x425544]
xor eax, esp
push eax
lea eax, [esp + 0x9c4]
mov dword fs:[0], eax
push 0x21
push str._src__1__dest__1__exe__1__respack
mov ecx, 0x426380
call fcn.00403590
mov edi, dword [0x428074]
sub esp, 0x1c
mov esi, esp
xor ebx, ebx
mov eax, edi
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov dword [esp + 0x34], esp
mov byte [esi + 4], bl
lea ebp, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x401ac0
sub eax, ebp
push eax
push edi
mov ecx, esi
call fcn.00403590
lea esi, [esp + 0x33]
call fcn.004049a0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 3
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x42308c
mov byte [ecx + 4], bl
call fcn.00403590
call fcn.00401890
cmp al, bl
je 0x401b6d
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 3
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x42308c
mov byte [ecx + 4], bl
call fcn.00403590
lea esi, [esp + 0x40]
call fcn.00401900
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x401b3f
mov eax, dword [eax + 4]
jmp 0x401b42
add eax, 4
push eax
lea eax, [esp + 0x4b0]
push 0x104
push eax
call fcn.00415859
add esp, 0xc
cmp dword [esp + 0x3c], esi
jb 0x401b94
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041658d
add esp, 4
jmp 0x401b94
mov eax, dword [0x428078]
push 0x104
lea edx, [esp + 0x4b0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x4ac]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 0x4ac]
push edx
push 0x104
push 0x428188
call fcn.00415859
add esp, 0xc
push 0x428188
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [esp + 0x4ac]
push eax
lea ecx, [esp + 0x6b8]
push 0x104
push ecx
call fcn.00415859
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0xc
push str.IIF.cab
lea edx, [esp + 0x6b8]
push edx
call ebp
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 3
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x423098
mov byte [ecx + 4], bl
call fcn.00403590
call fcn.00401890
cmp al, bl
je 0x401c73
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 3
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x423098
mov byte [ecx + 4], bl
call fcn.00403590
lea esi, [esp + 0x40]
call fcn.00401900
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x401c48
mov eax, dword [eax + 4]
jmp 0x401c4b
add eax, 4
push eax
push 0x104
push 0x428080
call fcn.00415859
add esp, 0xc
cmp dword [esp + 0x3c], esi
jb 0x401c8a
mov eax, dword [esp + 0x28]
push eax
call fcn.0041658d
add esp, 4
jmp 0x401c8a
push str.setup.exe
push 0x104
push 0x428080
call fcn.00415859
add esp, 0xc
lea ecx, [esp + 0x4ac]
push ecx
lea edx, [esp + 0x7bc]
push 0x104
push edx
call fcn.00415859
add esp, 0xc
push 0x428080
lea eax, [esp + 0x7bc]
push eax
call ebp
lea ecx, [esp + 0x7b8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x10
mov esi, eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
je 0x401d1a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
mov dword [esp + 0x1c], edi
call fcn.00406797
add esp, 4
push edi
push ebp
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x24]
push eax
push edx
call fcn.0041a8f0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x6b4]
push eax
lea esi, [esp + 0x7c]
call fcn.00401000
mov ecx, esi
push ecx
lea edx, [esp + 0x4b0]
push edx
call fcn.00402770
mov eax, dword [esp + 0x80]
add esp, 8
cmp eax, ebx
je 0x401d75
push 0x401210
push 0x4013a0
push ebx
push eax
call fcn.00406a30
mov eax, dword [esp + 0x88]
push eax
call fcn.00406ab0
add esp, 0x14
mov dword [esp + 0x78], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 4
mov ebp, 0xf
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.dest
mov byte [ecx + 4], bl
call fcn.00403590
call fcn.00401890
cmp al, bl
je 0x401fca
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 4
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.dest
mov byte [ecx + 4], bl
call fcn.00403590
lea esi, [esp + 0x40]
call fcn.00401900
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x401ddb
mov eax, dword [eax + 4]
jmp 0x401dde
add eax, 4
push eax
lea ecx, [esp + 0x5b4]
push 0x104
push ecx
call fcn.00415859
add esp, 0xc
cmp dword [esp + 0x3c], esi
jb 0x401e07
mov edx, dword [esp + 0x28]
push edx
call fcn.0041658d
add esp, 4
push 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 4
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.dest
mov edi, str..exe
mov byte [ecx + 4], bl
call fcn.00403590
lea esi, [esp + 0x44]
call fcn.00401900
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x9ec], ebx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x3c], esp
push 4
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push str.dest
lea ebp, [eax - 4]
mov byte [ecx + 4], bl
call fcn.00403590
lea esi, [esp + 0x7c]
call fcn.00401900
mov ecx, ebp
lea esi, [esp + 0x44]
mov edx, eax
mov byte [esp + 0x9d0], 1
call fcn.00402e40
mov ecx, edi
mov edi, eax
mov byte [esp + 0x9cc], 2
call fcn.004041e0
mov esi, 0x10
cmp dword [esp + 0x58], esi
mov byte [esp + 0x17], al
jb 0x401eaf
mov eax, dword [esp + 0x44]
push eax
call fcn.0041658d
add esp, 4
cmp dword [esp + 0x74], esi
mov edi, 0xf
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0x401ed3
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0041658d
add esp, 4
mov dword [esp + 0x9cc], 0xffffffff
cmp dword [esp + 0x3c], esi
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
jb 0x401efd
mov edx, dword [esp + 0x28]
push edx
call fcn.0041658d
add esp, 4
cmp byte [esp + 0x17], bl
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
je 0x401f31
push ebx
lea eax, [esp + 0x5b4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.SetupPacked.exe
lea ecx, [esp + 0x5b4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ebp, edi
mov ecx, dword [0x428078]
push 0x104
lea eax, [esp + 0x8c0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
lea edx, [esp + 0x5b4]
push edx
lea eax, [esp + 0x8c4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
lea ecx, [esp + 0x5b4]
push ecx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edi, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov esi, eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x401f95
mov edx, dword [esp + 0x18]
push edx
push eax
push 0x400
push 1
push 0x10
push esi
call edi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 7
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.respack
mov byte [ecx + 4], bl
call fcn.00403590
call fcn.00401890
cmp al, bl
lea ecx, [esp + 0x3ac]
je 0x401fe9
push 0x4ec
jmp 0x401fee
push str.SetupPacked.exe
lea edx, [esp + 0x5b4]
push 0x104
push edx
call fcn.00415859
add esp, 0xc
jmp 0x401f33
push 0x4b0
push esi
call fcn.00402950
mov eax, 0x428080
add esp, 8
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402000
sub eax, edx
add eax, 1
push eax
push 0x428080
push 0x400
push 0x4bc
push str.EXENAME
push esi
call edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
lea eax, [esp + 0x6b4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov ecx, dword [esp + 0x9c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9ac]
xor ecx, esp
call fcn.00414cc2
add esp, 0x9bc
ret