Function at 0x403841
Capabilities:
Get file size

Disassembly:
sub esp, 0x234
push ebx
push ebp
xor ebx, ebx
push edi
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2004
mov edi, 0x85c0d8
add eax, 0x3e8
push edi
push ebx
mov dword [0x7ef660], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push edi
call fcn.00406e54
mov ebp, eax
mov dword [0x40b010], ebp
cmp ebp, 0xffffffff
jne 0x403896
mov eax, str.Error_launching_installer
jmp 0x403b89
push esi
push edi
mov esi, 0x84c0b8
push esi
call fcn.0040705d
push esi
call fcn.0040723c
push eax
push 0x8600e0
call fcn.0040705d
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [0x41f154], esi
test esi, esi
je 0x4039e6
mov ebx, dword [esp + 0x248]
cmp dword [0x7ef5fc], 0
mov eax, 0x8000
mov edi, 0x200
cmovne edi, eax
cmp esi, edi
cmovb edi, esi
push edi
push 0x79da28
call fcn.004032fa
test eax, eax
je 0x403b7b
cmp dword [0x7ef5fc], 0
jne 0x4039a7
push 0x24
push 0x79da28
lea eax, [esp + 0x20]
push eax
call fcn.00406bdb
test dword [esp + 0x18], 0xfffffe00
jne 0x4039b4
cmp dword [esp + 0x1c], 0xdeadbeef
jne 0x4039b4
cmp dword [esp + 0x28], 0x74736e49
jne 0x4039b4
cmp dword [esp + 0x24], 0x74666f73
jne 0x4039b4
cmp dword [esp + 0x20], 0x6c6c754e
jne 0x4039b4
or ebx, dword [esp + 0x18]
mov ecx, dword [0x41f158]
mov eax, ebx
and eax, 2
mov dword [0x7ef5fc], ecx
or dword [0x7ef6e0], eax
mov eax, dword [esp + 0x30]
cmp eax, esi
ja 0x403b83
test bl, 8
jne 0x403985
test bl, 4
jne 0x4039dd
inc dword [0x41f150]
add eax, 0xffffffd8
push 0x24
pop edi
push edi
add eax, ecx
pop esi
mov dword [0x41f158], eax
add eax, 0x20
push 0
push eax
call fcn.00403372
jmp 0x4039b4
test bl, 2
jne 0x4039b4
push 0
call fcn.004037dd
pop ecx
cmp esi, dword [0x41f154]
jae 0x4039cf
push edi
push 0x79da28
push dword [esp + 0x18]
call fcn.0040735e
mov dword [esp + 0x10], eax
add dword [0x41f158], edi
sub esi, edi
jne 0x4038d4
mov ebx, dword [esp + 0x10]
mov edi, 0x85c0d8
test byte [esp + 0x18], 1
mov eax, dword [0x7ef5f8]
je 0x4039f8
inc eax
mov dword [0x7ef5f8], eax
test byte [esp + 0x18], 0x80
mov ecx, dword [0x7ef5f4]
je 0x403a0c
inc ecx
mov dword [0x7ef5f4], ecx
test dword [esp + 0x18], 0x100
je 0x403a1c
inc dword [0x7ef5f0]
test ecx, ecx
je 0x403a80
test eax, eax
jne 0x403a80
push edi
lea eax, [esp + 0x40]
push eax
call fcn.0040705d
lea eax, [esp + 0x3c]
push eax
call fcn.004071f8
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0040705d
lea eax, [esp + 0x3c]
push eax
push str._s.bin
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3c]
push 3
push 0x80000000
push eax
call fcn.00406e54
mov dword [0x40b014], eax
cmp eax, 0xffffffff
jne 0x403a80
cmp dword [0x7ef5f0], 0
je 0x403b83
push 1
call fcn.004037dd
cmp dword [0x7ef5fc], 0
pop ecx
je 0x403b83
cmp dword [0x41f150], 0
je 0x403afb
mov eax, dword [0x41f158]
add eax, 0xfffffffc
push 0
push eax
call fcn.00403372
push 4
lea eax, [esp + 0x18]
push eax
push dword [0x40b010]
call fcn.00406e81
test eax, eax
je 0x403b83
push 4
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0040735e
mov esi, eax
lea eax, [esp + 0x10]
push 4
push eax
push dword [0x40b010]
call fcn.00406e81
test eax, eax
je 0x403b83
cmp esi, dword [esp + 0x10]
jne 0x403b83
push dword [esp + 0x2c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x7ef5fc]
mov esi, eax
add ecx, 0x24
push ecx
call fcn.0040338a
push dword [esp + 0x14]
push dword [esp + 0x30]
push esi
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
call fcn.004033a1
mov ecx, eax
mov edi, edx
mov eax, dword [esp + 0x2c]
cdq
cmp ecx, eax
jne 0x403b83
cmp edi, edx
jne 0x403b83
mov dword [0x7ef604], esi
mov eax, dword [esi]
push 8
mov dword [0x7ef600], eax
lea eax, [esi + 0x44]
pop ecx
lea eax, [eax - 8]
add dword [eax], esi
dec ecx
jne 0x403b52
push 1
push ecx
push ecx
push ebp
call fcn.00403328
mov dword [esi + 0x3c], eax
lea eax, [esi + 4]
push 0x40
push eax
push 0x7ef620
call fcn.00406bdb
xor eax, eax
jmp 0x403b88
push 1
call fcn.004037dd
pop ecx
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 esi
pop edi
pop ebp
pop ebx
add esp, 0x234
ret 4