Function at 0x403f00
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x128
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0xc], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2000
push 0x474000
add eax, 0x3e8
push ebp
mov dword [0x43d860], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push 0x474000
call fcn.00406e20
mov esi, eax
cmp esi, 0xffffffff
mov dword [0x40d010], esi
jne 0x403f5d
pop esi
mov eax, str.Error_launching_installer
pop ebp
add esp, 0x128
ret 4
push ebx
push edi
push 0x474000
push 0x46c000
call fcn.00407020
push 0x46c000
call fcn.00407420
push eax
push 0x476000
call fcn.00407020
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x427d9c], eax
mov esi, eax
cmp eax, ebp
mov eax, dword [0x43d86c]
jle 0x4040b6
mov ebx, dword [esp + 0x13c]
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
mov edi, esi
jl 0x403fbc
mov edi, eax
mov ecx, dword [0x40d010]
push 0
lea eax, [esp + 0x14]
push eax
push edi
push 0x417d10
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404177
cmp dword [esp + 0x10], edi
jne 0x404177
mov eax, dword [0x43d86c]
test eax, eax
jne 0x404077
push 0x1c
push 0x417d10
lea edx, [esp + 0x20]
push edx
call fcn.00406dd0
mov ecx, dword [esp + 0x18]
test ecx, 0xfffffff0
jne 0x404086
cmp dword [esp + 0x1c], 0xdeadbeef
jne 0x404086
cmp dword [esp + 0x28], 0x74736e49
jne 0x404086
cmp dword [esp + 0x24], 0x74666f73
jne 0x404086
cmp dword [esp + 0x20], 0x6c6c754e
jne 0x404086
mov eax, dword [0x427d98]
or ebx, ecx
mov ecx, ebx
and ecx, 2
or dword [0x43d8e0], ecx
mov ecx, dword [esp + 0x30]
cmp ecx, esi
mov dword [0x43d86c], eax
jg 0x404191
test bl, 8
jne 0x404067
test bl, 4
jne 0x4040b6
add dword [esp + 0x14], 1
lea esi, [ecx - 4]
cmp edi, esi
jbe 0x40408b
mov edi, esi
jmp 0x40408b
test bl, 2
jne 0x40408b
push 0
call fcn.004039d0
add esp, 4
mov eax, dword [0x43d86c]
cmp esi, dword [0x427d9c]
jge 0x4040a6
push edi
push 0x417d10
push ebp
call fcn.004013f0
mov ebp, eax
mov eax, dword [0x43d86c]
add dword [0x427d98], edi
sub esi, edi
test esi, esi
jg 0x403fa6
mov ecx, dword [0x417d08]
test ecx, ecx
je 0x4040cc
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x43d86c]
test eax, eax
mov dword [0x417d08], 0
je 0x404191
cmp dword [esp + 0x14], 0
je 0x404116
mov edx, dword [0x427d98]
mov eax, dword [0x40d010]
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
lea ecx, [esp + 0x14]
push ecx
call fcn.00403a80
test eax, eax
je 0x404191
cmp ebp, dword [esp + 0x10]
jne 0x404191
mov edx, dword [esp + 0x2c]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, 0x41fd10
mov esi, eax
call fcn.00407d20
push 0x470000
lea eax, [esp + 0x38]
push eax
call fcn.00406e60
push 0
push 0x4000100
push 2
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x40d014], eax
jne 0x4041a3
pop edi
pop ebx
pop esi
mov eax, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
pop ebp
add esp, 0x128
ret 4
mov eax, dword [0x417d08]
test eax, eax
je 0x404187
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x417d08], 0
pop edi
pop ebx
pop esi
mov eax, str.Installer_integrity_check_has_failed._Common_causes_include_nincomplete_download_and_damaged_media._Contact_the_ninstallers_author_to_obtain_a_new_copy._n_nMore_information_at:_nhttp:__nsis.sf.net_NSIS_Error
pop ebp
add esp, 0x128
ret 4
mov edx, dword [0x43d86c]
add edx, 0x1c
push edx
call fcn.00403ac0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
not ecx
and ecx, 4
mov dword [0x42bda8], eax
sub eax, ecx
mov ecx, dword [esp + 0x2c]
push ecx
push esi
push 0
lea eax, [eax + edx - 0x1c]
push 0xffffffffffffffff
mov dword [0x42bda4], eax
call fcn.00403d70
cmp eax, dword [esp + 0x2c]
jne 0x404191
test byte [esp + 0x18], 1
mov dword [0x43d80c], esi
mov edx, dword [esi]
mov dword [0x43d868], edx
je 0x404200
add dword [0x43d864], 1
lea eax, [esi + 0x44]
mov ecx, 8
jmp 0x404210
add dword [eax - 8], esi
sub eax, 8
sub ecx, 1
jne 0x404210
mov ecx, dword [0x42bda0]
lea eax, [esi + 4]
push 0x40
push eax
push 0x43d820
mov dword [eax], ecx
call fcn.00406dd0
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x128
ret 4