Function at 0x410890
Capabilities:
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41dd0c
push eax
mov eax, 0x2360
mov dword fs:[0], esp
call fcn.0041b5a0
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, dword [esp + 0x2384]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x570]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x570]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x56f], 0x5c
jne 0x410913
lea edi, [esp + 0x570]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x56f], al
mov edx, dword [esp + 0x2380]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x1470]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
lea ebx, [esp + 0x1470]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str..CAB
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [esp + 0x1e78]
and ecx, 3
push 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, ebx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1e84]
and ecx, 3
push 0x80000000
rep movsb byte es:[edi], byte [esi]
mov edi, str..HDR
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1488]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
call esi
mov edi, eax
push 0
mov dword [esp + 0x20], edi
push 0x80
push 3
push 0
push 1
lea ecx, [esp + 0x1e84]
push 0x80000000
push ecx
call esi
mov ebx, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], ebx
je 0x41108e
cmp ebx, 0xffffffff
je 0x41108e
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x3c]
push 4
push eax
push ebx
call esi
mov ecx, dword [ebp + 8]
add ecx, 0xa8
call fcn.00418140
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x48], eax
add eax, 0xf
cmp ecx, 0x1e
mov dword [esp + 0x54], eax
jge 0x410a61
mov dword [esp + 0x2c], 1
jmp 0x410a78
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x2c], edx
push 0xc00000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0xc00000
mov dword [esp + 0x28], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x28]
add esp, 8
test edx, edx
mov dword [esp + 0x24], eax
je 0x41101c
test eax, eax
je 0x411019
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
test eax, eax
mov dword [esp + 0x18], 0
jle 0x410f56
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
jmp 0x410adb
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x20]
mov ecx, 0x300000
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
mov ecx, 0x300000
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
cmp eax, ecx
jne 0x410b32
mov eax, dword [ebp + 4]
test eax, eax
je 0x410b32
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x54]
cmp eax, ecx
jge 0x410b32
mov ecx, dword [ebp + 8]
inc eax
push eax
add ecx, 0xa8
mov dword [esp + 0x4c], eax
call fcn.00418090
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add eax, edx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x48]
push 4
push ecx
push ebx
call esi
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x44]
push 4
push eax
push ebx
call esi
test byte [esp + 0x3c], 0x20
je 0x410b8e
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x60]
push 8
push edx
push ebx
call esi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x70]
push 8
push ecx
push ebx
call esi
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x68]
push 8
push eax
push ebx
call esi
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0xa78]
push 0x500
push edx
push ebx
call esi
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], 0
test eax, eax
jbe 0x410bf3
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push edi
push edx
call esi
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push edi
push ecx
push edx
mov dword [esp + 0x48], 0xc00000
call fcn.00419970
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x410f7a
lea edi, [esp + 0xa70]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1970]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xa70]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0xa71]
test al, al
jne 0x410c73
lea edi, [esp + 0x1970]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xf70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1970]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42a438
jmp 0x410c92
lea edi, [esp + 0xa70]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xf70]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + ecx + 0xa71]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x3a
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xf74]
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x410ccd
mov byte [eax], 0
xor ebx, ebx
jmp 0x410cd2
mov ebx, 1
mov esi, dword [esp + 0x28]
cmp esi, 0xffffffff
jne 0x410e94
lea edi, [esp + 0x570]
or ecx, esi
xor eax, eax
lea edx, [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x70]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x429044
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1970]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x410db5
lea edi, [esp + 0x1970]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x70]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x70]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004110c0
test eax, eax
lea edx, [esp + 0x70]
je 0x410fec
mov edi, 0x429044
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0xf70]
push str.Created.TMP
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x410f35
lea edi, [esp + 0xf70]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
push 2
mov ecx, edx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x84]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x70]
mov esi, eax
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x154
mov dword [esp + 0x2c], esi
call fcn.0041b81e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x154]
push ecx
lea ecx, [eax + 0x68]
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x70]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x3c], 0x20
je 0x410e78
lea ecx, [esp + 0x60]
lea edx, [esp + 0x68]
push ecx
lea eax, [esp + 0x5c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp esi, 0xffffffff
jne 0x410e90
push str.Cannot_create_file_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
jmp 0x410f35
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
test eax, eax
jbe 0x410eb0
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x70]
lea ecx, [esp + 0x44]
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x44]
lea edx, [esp + 0x50]
push ecx
push str.File_Copy:
push edx
mov dword [esp + 0x2384], 2
call sub.MFC42.DLL_operator_1
push ecx
lea eax, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
mov byte [esp + 0x2380], 3
call fcn.0041b7f4
mov ecx, ebp
call fcn.00411280
test ebx, ebx
je 0x410f10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x50]
mov byte [esp + 0x2378], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov dword [esp + 0x2378], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x410ad1
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x28]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push edi
call esi
push ebx
call esi
jmp 0x41109c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1470]
lea edx, [esp + 0x18]
push ecx
push esi
push 0x429e94
push edx
mov dword [esp + 0x2388], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call fcn.0041b7f4
call fcn.00416710
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call edi
push ebx
call edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x2378], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x41109e
push edx
push str.Cannot_create_path__s__please_check_n
call dword [sym.imp.MSVCRT.dll_printf]
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov eax, 0xfffffff6
jmp 0x41109e
push edx
jmp 0x411021
test eax, eax
je 0x411029
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
push 0x429e54
push eax
mov dword [esp + 0x2380], 0
call sub.MFC42.DLL_CString::Format
add esp, 4
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.0041b7f4
call fcn.00416710
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push edi
call esi
push ebx
call esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x2378], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffff5
jmp 0x41109e
push str.Cannot_find_packed_file_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2370]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x236c
ret 8