Function at 0x403daa
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
call sub.KERNEL32.dll_GetTickCount
add eax, 0x3e8
mov dword [0x430840], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x43ac00
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x43ac00
call fcn.004075c5
sub esp, 0xc
mov esi, eax
mov dword [0x40a010], eax
cmp eax, 0xffffffff
je 0x4040be
mov dword [esp + 4], 0x43ac00
mov dword [esp], 0x439c00
call fcn.004077f4
push ecx
push ecx
mov dword [esp], 0x439c00
call fcn.00407428
push ebx
mov dword [esp + 4], eax
mov dword [esp], 0x43b000
call fcn.004077f4
push edi
push edi
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.KERNEL32.dll_GetFileSize
push edx
push edx
mov edi, eax
mov dword [0x40dc44], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
jmp 0x403fb4
cmp dword [0x43084c], 1
sbb ebx, ebx
and ebx, 0xffff8200
add ebx, 0x8000
cmp ebx, edi
jle 0x403e8c
mov ebx, edi
mov dword [esp + 4], ebx
mov dword [esp], 0x40dc50
call fcn.00403a74
push edx
push edx
test eax, eax
jne 0x403eb3
mov dword [esp], 1
call fcn.004039dc
jmp 0x403ff3
cmp dword [0x43084c], 0
jne 0x403f71
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 0x40dc50
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.00407572
sub esp, 0xc
mov eax, dword [ebp - 0x34]
test eax, 0xfffffff0
jne 0x403f87
cmp dword [ebp - 0x30], 0xdeadbeef
jne 0x403f87
cmp dword [ebp - 0x24], 0x74736e49
jne 0x403f87
cmp dword [ebp - 0x28], 0x74666f73
jne 0x403f87
cmp dword [ebp - 0x2c], 0x6c6c754e
jne 0x403f87
mov ecx, dword [0x40dc48]
mov dword [0x43084c], ecx
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
and eax, 2
or dword [0x4307dc], eax
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jle 0x403f3f
jmp 0x403ff3
test byte [ebp + 8], 8
jne 0x403f65
test byte [ebp + 8], 4
je 0x403f65
mov dword [esp], 1
call fcn.004039dc
cmp dword [0x43084c], 0
jne 0x403fbe
jmp 0x403ff3
inc dword [ebp - 0x40]
lea edi, [eax - 4]
cmp ebx, edi
ja 0x403f85
jmp 0x403f87
test byte [ebp + 8], 2
jne 0x403f87
mov dword [esp], 0
call fcn.004039dc
jmp 0x403f87
mov ebx, edi
cmp edi, dword [0x40dc44]
jge 0x403fac
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x40dc50
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.004082e4
sub esp, 0xc
mov dword [ebp - 0x3c], eax
add dword [0x40dc48], ebx
sub edi, ebx
test edi, edi
jg 0x403e71
jmp 0x403f4b
cmp dword [ebp - 0x40], 0
je 0x403ffd
mov eax, dword [0x40dc48]
mov dword [esp], eax
call fcn.00403abf
push ebx
mov dword [esp + 4], 4
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.00403a74
push edi
push edi
test eax, eax
je 0x403ff3
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x38]
je 0x403ffd
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 0x4040c3
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], 0x40
call sub.KERNEL32.dll_GlobalAlloc
push edx
push edx
mov ebx, eax
mov eax, dword [0x43084c]
add eax, 0x1c
mov dword [esp], eax
call fcn.00403abf
push ecx
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call fcn.00403af0
sub esp, 0x10
cmp eax, dword [ebp - 0x20]
jne 0x403ff3
mov dword [0x4307fc], ebx
mov eax, dword [ebx]
mov dword [0x430844], eax
test byte [ebp - 0x34], 1
je 0x404065
inc dword [0x430848]
mov eax, 8
jmp 0x404070
add dword [ebx + eax*8 + 4], ebx
dec eax
cmp eax, 0xffffffff
jne 0x40406c
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
mov dword [ebx + 0x3c], eax
mov dword [esp + 8], 0x40
add ebx, 4
mov dword [esp + 4], ebx
mov dword [esp], 0x430800
call fcn.00407572
sub esp, 0xc
xor eax, eax
jmp 0x4040c3
mov eax, 0x40b163
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4