Function at 0x40346f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
and dword [ebp - 4], 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x400
mov edi, 0x436c00
push edi
add eax, 0x3e8
push 0
mov dword [0x42f144], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push edi
call fcn.00405d87
mov ebx, eax
mov dword [ebp - 0xc], ebx
mov dword [0x40a010], ebx
cmp ebx, 0xffffffff
jne 0x4034c8
mov eax, str.Error_launching_installer
jmp 0x403791
push esi
push edi
mov esi, 0x435c00
push esi
call fcn.00406055
push esi
call fcn.00406359
push eax
push 0x437000
call fcn.00406055
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x429110], eax
mov ebx, eax
test eax, eax
jbe 0x403604
mov esi, dword [0x42f154]
neg esi
sbb esi, esi
and esi, 0x7e00
add esi, 0x200
cmp ebx, esi
jae 0x40351a
mov esi, ebx
push esi
push 0x417550
call fcn.00402fbe
test eax, eax
je 0x403748
cmp dword [0x42f154], 0
jne 0x4035cf
push 0x24
push 0x417550
lea eax, [ebp - 0x30]
push eax
call fcn.00405d3d
test dword [ebp - 0x30], 0xfffffe00
jne 0x4035dd
cmp dword [ebp - 0x2c], 0xdeadbeef
jne 0x4035dd
cmp dword [ebp - 0x20], 0x74736e49
jne 0x4035dd
cmp dword [ebp - 0x24], 0x74666f73
jne 0x4035dd
cmp dword [ebp - 0x28], 0x6c6c754e
jne 0x4035dd
mov edx, dword [ebp + 8]
or edx, dword [ebp - 0x30]
mov eax, dword [0x41754c]
mov ecx, edx
and ecx, 2
or dword [0x42f1c0], ecx
mov ecx, dword [ebp - 0x18]
mov dword [0x42f154], eax
mov dword [ebp + 8], edx
cmp ecx, ebx
ja 0x403741
test dl, 8
jne 0x4035ae
test dl, 4
jne 0x403604
inc dword [0x429114]
push 0x24
pop ebx
lea eax, [eax + ecx - 0x28]
mov dword [0x41754c], eax
add eax, 0x20
push 0
push eax
mov esi, ebx
call fcn.00403031
jmp 0x4035dd
test byte [ebp + 8], 2
jne 0x4035dd
push 0
call fcn.00402f5a
pop ecx
cmp ebx, dword [0x429110]
jae 0x4035f6
push esi
push 0x417550
push dword [ebp - 4]
call fcn.004069fe
mov dword [ebp - 4], eax
add dword [0x41754c], esi
sub ebx, esi
jne 0x4034fe
test byte [ebp - 0x30], 1
je 0x403610
inc dword [0x42f148]
test byte [ebp - 0x30], 0x80
je 0x40361c
inc dword [0x42f14c]
test dword [ebp - 0x30], 0x100
je 0x40362b
inc dword [0x42f140]
cmp dword [0x42f14c], 0
je 0x4036a3
cmp dword [0x42f148], 0
jne 0x4036a3
push edi
lea eax, [ebp - 0x134]
push eax
call fcn.00406055
lea eax, [ebp - 0x134]
push eax
call fcn.00406380
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.00406055
lea eax, [ebp - 0x134]
push eax
push str._s.nsisbin
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 3
push 0x80000000
lea eax, [ebp - 0x134]
push eax
call fcn.00405d87
mov dword [0x40a014], eax
cmp eax, 0xffffffff
jne 0x4036a3
cmp dword [0x42f140], 0
je 0x403741
push 1
call fcn.00402f5a
xor ebx, ebx
pop ecx
cmp dword [0x42f154], ebx
je 0x403741
cmp dword [0x429114], ebx
je 0x403703
mov eax, dword [0x41754c]
add eax, 0xfffffffc
push ebx
push eax
call fcn.00403031
push 4
lea eax, [ebp - 8]
push eax
call fcn.00402fbe
test eax, eax
je 0x403741
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.004069fe
mov esi, eax
push 4
lea eax, [ebp + 8]
push eax
call fcn.00402fbe
test eax, eax
je 0x403741
cmp esi, dword [ebp + 8]
jne 0x403741
push dword [ebp - 0x1c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x42f154]
add eax, 0x24
push eax
call fcn.0040301a
push dword [ebp - 8]
push dword [ebp - 0x1c]
push esi
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
call fcn.004030ed
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov edi, edx
cdq
cmp ecx, eax
jne 0x403741
cmp edi, edx
je 0x403752
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 0x403790
push 1
call fcn.00402f5a
pop ecx
jmp 0x403741
mov dword [0x42f0f0], esi
mov eax, dword [esi]
push 8
mov dword [0x42f150], eax
pop ecx
lea eax, [esi + 0x44]
sub eax, 8
add dword [eax], esi
dec ecx
cmp ecx, ebx
jne 0x403765
push 1
push ebx
push ebx
push dword [ebp - 0xc]
call fcn.00402fd4
mov dword [esi + 0x3c], eax
push 0x40
add esi, 4
push esi
push 0x42f100
call fcn.00405d3d
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 4