Function at 0x402fa0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x439c00
push 0x400
add eax, 0x3e8
push esi
push ebx
mov dword [0x432c8c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x30]
push str._08X
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
cmp eax, ebx
jne 0x40301c
push 3
push 0x80000000
push esi
call fcn.00405bba
mov edi, eax
cmp edi, 0xffffffff
mov dword [0x40f02c], edi
jne 0x403063
jmp 0x40302f
push 8
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
jne 0x403039
mov eax, str.Error_launching_installer
jmp 0x4032ba
push 4
push edi
push 0x425e44
mov dword [0x425e48], 1
call fcn.00405b75
add edi, 4
push 4
push edi
push 0x432c9c
call fcn.00405b75
mov edi, dword [ebp + 8]
push esi
mov esi, 0x438c00
push esi
call fcn.00405ee5
push esi
call fcn.00405a15
push eax
push 0x43a000
call fcn.00405ee5
cmp dword [0x425e48], ebx
jne 0x403092
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x403097
mov eax, dword [0x425e44]
cmp eax, ebx
mov dword [0x41de38], eax
mov esi, eax
jle 0x403190
mov eax, dword [0x432c94]
mov edi, esi
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
jl 0x4030c1
mov edi, eax
push edi
push 0x41de40
call fcn.0040356b
test eax, eax
je 0x40322b
cmp dword [0x432c94], ebx
jne 0x40315a
push 0x1c
lea eax, [ebp - 0x24]
push 0x41de40
push eax
call fcn.00405b75
mov eax, dword [ebp - 0x24]
test eax, 0xfffffff0
jne 0x403167
cmp dword [ebp - 0x20], 0xdeadbeef
jne 0x403167
cmp dword [ebp - 0x14], 0x74736e49
jne 0x403167
cmp dword [ebp - 0x18], 0x74666f73
jne 0x403167
cmp dword [ebp - 0x1c], 0x6c6c754e
jne 0x403167
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x41de28]
and eax, 2
or dword [0x432d40], eax
mov eax, dword [ebp - 0xc]
cmp eax, esi
mov dword [0x432c94], ecx
jg 0x40326f
test byte [ebp + 8], 8
jne 0x40314c
test byte [ebp + 8], 4
jne 0x403190
inc dword [ebp - 8]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x403167
mov edi, esi
jmp 0x403167
test byte [ebp + 8], 2
jne 0x403167
push ebx
call fcn.00402f0a
pop ecx
cmp esi, dword [0x41de38]
jge 0x403180
push edi
push 0x41de40
push dword [ebp - 4]
call fcn.0040c249
mov dword [ebp - 4], eax
add dword [0x41de28], edi
sub esi, edi
cmp esi, ebx
jg 0x4030a6
push 1
call fcn.00402f0a
cmp dword [0x432c94], ebx
pop ecx
je 0x40326f
cmp dword [ebp - 8], ebx
je 0x4031d3
push dword [0x41de28]
call fcn.004035ed
lea eax, [ebp + 8]
push 4
push eax
call fcn.0040356b
test eax, eax
je 0x40326f
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jne 0x40326f
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, 0x411da0
mov esi, eax
call fcn.0040c2bf
lea eax, [ebp - 0x134]
push 0x439400
push eax
call fcn.00405be9
push ebx
push 0x4000100
push 2
push ebx
push ebx
lea eax, [ebp - 0x134]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x40f030], eax
jne 0x403235
mov eax, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x4032ba
push 1
call fcn.00402f0a
pop ecx
jmp 0x40326f
mov eax, dword [0x432c94]
add eax, 0x1c
push eax
call fcn.004035ed
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x10]
not ecx
and ecx, 4
mov dword [0x41de3c], eax
sub eax, ecx
mov ecx, dword [ebp - 0xc]
push esi
push ebx
lea eax, [eax + ecx - 0x1c]
push 0xffffffffffffffff
mov dword [0x41de30], eax
call fcn.004032c1
cmp eax, dword [ebp - 0x10]
je 0x403276
mov eax, str.The_installer_you_are_trying_to_use_is_corrupted_or_incomplete._nThis_could_be_the_result_of_a_damaged_disk__a_failed_download_or_a_virus._n_nYou_may_want_to_contact_the_author_of_this_installer_to_obtain_a_new_copy._n_nIt_may_be_possible_to_skip_this_check_using_the__NCRC_command_line_switch_n_NOT_RECOMMENDED_.
jmp 0x4032ba
test byte [ebp - 0x24], 1
mov dword [0x432c90], esi
mov eax, dword [esi]
mov dword [0x432c98], eax
je 0x40328f
inc dword [0x432ca0]
lea ecx, [esi + 0x3c]
push 8
mov eax, ecx
pop edx
add dword [eax], esi
dec edx
sub eax, 8
cmp edx, ebx
ja 0x403297
mov eax, dword [0x41de2c]
add esi, 4
push 0x40
push esi
push 0x432cc0
mov dword [ecx], eax
call fcn.00405b75
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4