Function at 0x403154
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x400
mov esi, 0x42bc00
push esi
add eax, 0x3e8
push edi
mov dword [0x424440], eax
mov dword [0x424448], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
mov ebx, 0x80000000
push ebx
push esi
call fcn.00405a31
mov dword [ebp - 0x18], eax
mov dword [0x40a010], eax
cmp eax, 0xffffffff
jne 0x4031b5
mov eax, str.Error_launching_installer
jmp 0x403439
push esi
mov edi, 0x42ac00
push edi
call fcn.00405cff
push edi
call fcn.00405f92
push eax
push 0x42c000
call fcn.00405cff
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4031ed
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
jmp 0x403439
mov eax, dword [ebp - 0x10]
mov dword [0x41f598], eax
mov edi, eax
test eax, eax
jbe 0x4032f8
mov eax, dword [0x424450]
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
mov dword [ebp - 0xc], edi
cmp edi, eax
jb 0x40321c
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push 0x417598
call fcn.00402dbb
test eax, eax
je 0x403440
cmp dword [0x424450], 0
jne 0x4032be
push 0x24
push 0x417598
lea eax, [ebp - 0x3c]
push eax
call fcn.004059e7
mov eax, dword [ebp - 0x3c]
test eax, 0xfffffff0
jne 0x4032cc
cmp dword [ebp - 0x38], 0xdeadbeef
jne 0x4032cc
cmp dword [ebp - 0x2c], 0x74736e49
jne 0x4032cc
cmp dword [ebp - 0x30], 0x74666f73
jne 0x4032cc
cmp dword [ebp - 0x34], 0x6c6c754e
jne 0x4032cc
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x41750c]
and eax, 2
or dword [0x4244c0], eax
mov eax, dword [ebp - 0x24]
mov dword [0x424450], ecx
cmp eax, edi
ja 0x4031e3
test byte [ebp + 8], 8
jne 0x4032ae
test byte [ebp + 8], 4
jne 0x4032f8
inc dword [ebp - 0x14]
lea edi, [eax - 4]
cmp dword [ebp - 0xc], edi
jbe 0x4032cc
mov dword [ebp - 0xc], edi
jmp 0x4032cc
test byte [ebp + 8], 2
jne 0x4032cc
push 0
call fcn.00402d57
pop ecx
cmp edi, dword [0x41f598]
jae 0x4032e7
push dword [ebp - 0xc]
push 0x417598
push dword [ebp - 4]
call fcn.00406637
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
add dword [0x41750c], eax
sub edi, eax
jne 0x4031ff
test dword [ebp - 0x1c], ebx
je 0x403369
test byte [ebp - 0x3c], 1
jne 0x403369
and dword [ebp - 0x1c], 0x7fffffff
inc dword [0x424448]
push esi
lea eax, [ebp - 0x140]
push eax
call fcn.00405cff
lea eax, [ebp - 0x140]
push eax
call fcn.00405fb9
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.00405cff
lea eax, [ebp - 0x140]
push eax
push str._s.nsisbin
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 3
push ebx
lea eax, [ebp - 0x140]
push eax
call fcn.00405a31
mov dword [0x40a014], eax
cmp eax, 0xffffffff
je 0x4031e3
push 1
call fcn.00402d57
xor edi, edi
pop ecx
cmp dword [0x424450], edi
je 0x4031e3
cmp dword [ebp - 0x14], edi
je 0x4033ae
push dword [0x41750c]
call fcn.00402dd1
push 4
lea eax, [ebp + 8]
push eax
call fcn.00402dbb
test eax, eax
je 0x4031e3
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jne 0x4031e3
push dword [ebp - 0x28]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x424450]
add eax, 0x24
push eax
call fcn.00402dd1
push edi
push dword [ebp - 0x28]
push esi
push edi
push 0xffffffffffffffff
push 0xfffffffffffffffe
call fcn.00402ebf
cmp eax, dword [ebp - 0x28]
jne 0x4031e3
test byte [ebp - 0x3c], 1
mov dword [0x4243f0], esi
mov eax, dword [esi]
mov dword [0x42444c], eax
je 0x4033fa
inc dword [0x424444]
push 8
pop ecx
lea eax, [esi + 0x44]
sub eax, 8
add dword [eax], esi
dec ecx
cmp ecx, edi
jne 0x403400
push 1
lea eax, [ebp - 8]
push eax
push edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp - 8]
mov dword [esi + 0x3c], eax
push 0x40
add esi, 4
push esi
push 0x424400
call fcn.004059e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 1
call fcn.00402d57
pop ecx
jmp 0x4031e3