Function at 0x405ee0
Capabilities:
Copy file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8ec
mov eax, dword [0x42b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x8b8]
push 0x105
push 0
push eax
call fcn.00409860
push 0x105
lea eax, [ebp - 0x3a0]
push 0
push eax
call fcn.00409860
push str.FormPaks_Sent
push edi
call fcn.004015d0
lea ebx, [edi + 0x114]
add esp, 0x20
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405f38
push 0
push 1
sub ecx, edx
push ecx
push 0x416834
push ebx
push 0x416840
push 0x80000001
call fcn.00406b30
lea eax, [ebp - 0x8d8]
mov dword [ebp - 0x8d8], 0x105
push eax
push 0x41686c
lea eax, [ebp - 0x8b8]
push eax
push 0x416840
push 0x80000001
call fcn.00402c90
add esp, 0x30
test eax, eax
jne 0x405fe6
cmp dword [edi + 0x954], eax
je 0x405fb7
lea edx, [edi + 0xb60]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405fa1
push 0
push 1
sub ecx, esi
push ecx
push 0x41686c
push edx
jmp 0x405fd4
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405fc0
push 0
push 1
sub ecx, edx
push ecx
push 0x41686c
push ebx
push 0x416840
push 0x80000001
call fcn.00406b30
add esp, 0x1c
lea eax, [ebp - 0x8d8]
mov dword [ebp - 0x8d8], 0x105
push eax
push str.FormDir
lea eax, [ebp - 0x3a0]
push eax
push 0x416840
push 0x80000001
call fcn.00402c90
add esp, 0x14
test eax, eax
jne 0x406090
cmp dword [edi + 0x954], 0
mov ax, word [0x416550]
movq xmm0, qword [str.FormPaks]
mov word [ebp - 8], ax
lea eax, [edi + 0xb60]
movq qword [ebp - 0x10], xmm0
jne 0x406041
mov eax, ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x3a0]
push 0x41687c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x3a0]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406064
push 0
push 1
sub ecx, edx
lea eax, [ebp - 0x3a0]
push ecx
push str.FormDir
push eax
push 0x416840
push 0x80000001
call fcn.00406b30
add esp, 0x1c
mov eax, 0x7c
mov dword [ebp - 0x8e4], 0
push 0x105
push 0x40
mov word [ebp - 0x8d0], ax
call fcn.00405c20
mov ebx, eax
mov dword [ebp - 0x8d4], 0
lea eax, [ebp - 0x8dc]
mov dword [ebp - 0x8cc], ebx
push eax
lea esi, [edi + 0x218]
mov dword [ebp - 0x8dc], 0
push esi
push esi
push 0
mov dword [ebp - 0x8e8], 0
call fcn.00402fe0
add esp, 0x18
test eax, eax
je 0x40611e
mov eax, dword [ebp - 0x8dc]
add eax, 2
push eax
push 0x40
call fcn.00405c20
lea ecx, [ebp - 0x8dc]
mov dword [ebp - 0x8e8], eax
push ecx
push esi
push esi
push eax
call fcn.00402fe0
add esp, 0x18
push 1
lea eax, [ebp - 0x8e4]
push eax
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x8e8]
call fcn.00406f90
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406323
cmp byte [esi], 0
je 0x406323
push esi
xor ebx, ebx
call fcn.004035b0
movups xmm0, xmmword [str.EfileX23.exe_EfileX.dll_zlibwapi.dll_EfileX.chm_license.txt]
movzx ecx, ax
mov eax, dword [0x4168bc]
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x14], eax
mov eax, ecx
movups xmm0, xmmword [0x416894]
mov dword [ebp - 0x8e0], eax
add eax, esi
push str.EfileX.cab
movups xmmword [ebp - 0x3c], xmm0
push eax
movups xmm0, xmmword [0x4168a4]
mov dword [ebp - 0x8ec], ebx
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [0x4168b4]
movq qword [ebp - 0x1c], xmm0
call fcn.0040b6f1
add esp, 0xc
test eax, eax
je 0x4062f5
mov eax, dword [ebp - 0x8e0]
add eax, esi
push ebx
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004070f0
add esp, 0xc
test eax, eax
je 0x40621d
mov eax, dword [0x4168c8]
movq xmm0, qword [0x4168c0]
mov dword [ebp - 0x8c0], eax
mov al, byte [0x4168cc]
mov byte [ebp - 0x8bc], al
mov eax, dword [ebp - 0x8e0]
add eax, esi
movq qword [ebp - 0x8c8], xmm0
push ebx
push eax
lea eax, [ebp - 0x8c8]
push eax
call fcn.004070f0
add esp, 0xc
neg eax
sbb ebx, ebx
lea eax, [edi + 0x114]
neg ebx
jmp 0x406260
lea eax, [ebp - 0x8ec]
push eax
push str.FormPaks_
push esi
call fcn.004070f0
add esp, 0xc
mov ecx, ebx
test eax, eax
je 0x40624f
mov eax, dword [ebp - 0x8ec]
add eax, 9
cmp eax, dword [ebp - 0x8e0]
mov eax, 1
cmove ecx, eax
test ecx, ecx
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x8b8]
cmove eax, edx
push esi
mov dword [ebp - 0xc], eax
call fcn.004035b0
movzx eax, ax
add eax, esi
push eax
push dword [ebp - 0xc]
push 0x416530
push dword [ebp - 0x8cc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push dword [ebp - 0x8cc]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4062c2
test ebx, ebx
mov ebx, dword [ebp - 0x8cc]
je 0x4062fb
mov edx, edi
mov ecx, ebx
sub edx, ebx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx + 0x523], al
test al, al
jne 0x4062b0
jmp 0x4062fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x8d4], 0
mov ebx, dword [ebp - 0x8cc]
jne 0x4062fb
mov edx, edi
mov dword [ebp - 0x8d4], eax
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx + 0x41f], al
test al, al
jne 0x4062e3
jmp 0x4062fb
mov ebx, dword [ebp - 0x8cc]
push 1
lea eax, [ebp - 0x8e4]
push eax
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x8e4]
call fcn.00406f90
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x406146
push ebx
call fcn.00405c70
push dword [ebp - 0x8e8]
call fcn.00405c70
mov eax, dword [ebp - 0x8d4]
add esp, 8
test eax, eax
jne 0x406366
push edi
mov dword [edi + 0x948], 5
call fcn.00402580
lea eax, [edi + 0x114]
push eax
push edi
call fcn.004020f0
add esp, 0xc
jmp 0x4066a4
mov dword [edi + 0x94c], eax
mov dword [edi + 0x948], 4
mov ax, word [0x4168ec]
movups xmm0, xmmword [str.C:EfxInstM23.log]
push 0x1f6
mov word [ebp - 0x288], ax
lea eax, [ebp - 0x286]
push 0
push eax
movups xmmword [ebp - 0x298], xmm0
call fcn.00409860
push 0x40f
lea eax, [ebp - 0x7af]
mov byte [ebp - 0x7b0], 0
push 0
push eax
call fcn.00409860
add esp, 0x18
cmp dword [edi + 0x954], 0
je 0x4063f4
cmp byte [edi + 0xb60], 0
lea eax, [edi + 0xb60]
je 0x4063f4
push str.EfxInstM23.log
push eax
lea eax, [ebp - 0x298]
push 0x416530
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x8c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x40
lea eax, [ebp - 0x90]
push eax
push 0
lea eax, [ebp - 0x8c8]
push eax
push 2
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push 0x40
lea eax, [ebp - 0x50]
push eax
push 0
lea eax, [ebp - 0x8c8]
push eax
push 2
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x90]
push eax
push 0x416900
push 0x416388
lea eax, [ebp - 0x7b0]
push str.999__s__s_Installation_Log__created__s_at__s__r_n_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x7b0]
add esp, 0x18
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4064a0
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x8cc]
push 0
push eax
sub ecx, edx
lea eax, [ebp - 0x7b0]
push ecx
push eax
push esi
call ebx
lea eax, [edi + 0x31c]
push eax
lea eax, [ebp - 0x7b0]
push str.999_Source____s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x7b0]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4064e8
push 0
lea eax, [ebp - 0x8cc]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x7b0]
push eax
push esi
call ebx
lea eax, [edi + 0x114]
push eax
lea eax, [ebp - 0x7b0]
push str.999_Target____s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x7b0]
add esp, 0xc
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406530
push 0
lea eax, [ebp - 0x8cc]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x7b0]
push eax
push esi
call ebx
lea eax, [edi + 0x420]
push eax
lea eax, [ebp - 0x7b0]
push str.999_File______s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x7b0]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406572
push 0
lea eax, [ebp - 0x8cc]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x7b0]
push eax
push esi
call ebx
push dword [ebp - 0x8d4]
lea eax, [ebp - 0x7b0]
push str.999_Error_____lu_r_n_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x7b0]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4065b3
push 0
lea eax, [ebp - 0x8cc]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x7b0]
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x948], 4
jne 0x4066a4
movups xmm0, xmmword [str.An_error_occurred_while_extracting_the_file_r_n]
mov eax, dword [0x4169b4]
mov dword [ebp - 0x270], eax
movzx eax, word [0x4169b8]
movups xmmword [ebp - 0x298], xmm0
push 0x1da
movups xmm0, xmmword [0x41699c]
mov word [ebp - 0x26c], ax
lea eax, [ebp - 0x26a]
push 0
movups xmmword [ebp - 0x288], xmm0
push eax
movq xmm0, qword [0x4169ac]
movq qword [ebp - 0x278], xmm0
call fcn.00409860
mov eax, dword [str.._r_n_r_n]
lea ecx, [ebp - 0x298]
mov dword [ebp - 0xc], eax
lea edx, [ecx + 1]
movzx eax, word [0x4169c0]
add esp, 0xc
mov word [ebp - 8], ax
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406660
lea eax, [ebp - 0xc]
sub ecx, edx
push eax
lea eax, [edi + 0x420]
push eax
lea eax, [ebp - 0x298]
add eax, ecx
push 0x41687c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x8d4]
push dword [edi + 0x940]
call fcn.00401fb0
add esp, 0x20
push 0
push 0x3e7
push 0x111
push dword [edi + 0x944]
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408060
mov esp, ebp
pop ebp
ret 4