Function at 0x403eeb
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x15c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x3e8
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x435c00
mov dword [0x42bc80], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0xc
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x435c00
call fcn.00407a64
mov ebx, eax
sub esp, 0xc
mov dword [0x40a014], eax
cmp ebx, 0xffffffff
mov eax, 0x40b178
je 0x404299
mov dword [esp + 4], 0x435c00
mov dword [esp], 0x434c00
call fcn.00407ca2
push esi
push esi
xor esi, esi
mov dword [esp], 0x434c00
call fcn.004078ba
push edi
mov dword [esp + 4], eax
mov dword [esp], 0x436000
call fcn.00407ca2
push eax
push eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edx
push edx
mov edi, eax
mov dword [0x427d0c], eax
mov dword [ebp - 0x13c], 0
test edi, edi
jle 0x4040ab
cmp dword [0x42bc8c], 1
mov dword [esp], 0x413c60
sbb ebx, ebx
and ebx, 0xffff8200
add ebx, 0x8000
cmp edi, ebx
cmovle ebx, edi
mov dword [esp + 4], ebx
call fcn.00403ad1
test eax, eax
push ecx
push ecx
jne 0x403fff
mov dword [esp], 1
call fcn.004039e6
jmp 0x404150
cmp dword [0x42bc8c], 0
jne 0x4040d5
lea eax, [ebp - 0x138]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 0x413c60
mov dword [esp], eax
call fcn.00407a0f
mov eax, dword [ebp - 0x138]
sub esp, 0xc
test eax, 0xfffffff0
jne 0x4040e7
cmp dword [ebp - 0x134], 0xdeadbeef
jne 0x4040e7
cmp dword [ebp - 0x128], 0x74736e49
jne 0x4040e7
cmp dword [ebp - 0x12c], 0x74666f73
jne 0x4040e7
cmp dword [ebp - 0x130], 0x6c6c754e
jne 0x4040e7
or dword [ebp + 8], eax
mov ecx, dword [0x427d08]
mov eax, dword [ebp + 8]
mov dword [0x42bc8c], ecx
and eax, 2
or dword [0x42bc00], eax
mov eax, dword [ebp - 0x120]
cmp edi, eax
jl 0x404150
test byte [ebp + 8], 8
jne 0x4040c5
test byte [ebp + 8], 4
je 0x4040c5
mov dword [esp], 1
call fcn.004039e6
cmp dword [0x42bc8c], 0
jne 0x404115
jmp 0x404150
lea edi, [eax - 4]
inc dword [ebp - 0x13c]
cmp ebx, edi
cmova ebx, edi
jmp 0x4040e7
test byte [ebp + 8], 2
jne 0x4040e7
mov dword [esp], 0
call fcn.004039e6
cmp edi, dword [0x427d0c]
jge 0x404108
mov dword [esp], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x413c60
call fcn.00408874
sub esp, 0xc
mov esi, eax
add dword [0x427d08], ebx
sub edi, ebx
jmp 0x403fb6
cmp dword [ebp - 0x13c], 0
lea edi, [ebp - 0x11c]
je 0x40415a
mov eax, dword [0x427d08]
mov dword [esp], eax
call fcn.00403b19
push eax
mov dword [esp + 4], 4
mov dword [esp], edi
call fcn.00403ad1
test eax, eax
push edx
push edx
je 0x404150
cmp esi, dword [ebp - 0x11c]
je 0x40415a
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 0x404299
mov eax, dword [ebp - 0x124]
mov dword [esp], 0x40
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ecx
push ecx
mov ecx, 0x427c80
mov ebx, eax
call fcn.004088e0
mov dword [esp + 4], 0x435400
mov dword [esp], edi
call fcn.00407ac0
push esi
push esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000100
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x40a010], eax
sub esp, 0x1c
inc eax
mov eax, 0x40b25e
je 0x404299
mov eax, dword [0x42bc8c]
add eax, 0x1c
mov dword [esp], eax
call fcn.00403b19
push edx
mov edx, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x120]
mov dword [0x427d14], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
and edx, 4
mov dword [esp], 0xffffffff
cmp edx, 1
lea eax, [eax + ecx - 0x1c]
sbb edx, edx
and edx, 4
sub eax, edx
mov dword [0x427d10], eax
mov eax, dword [ebp - 0x124]
mov dword [esp + 0xc], eax
call fcn.00403d3a
sub esp, 0x10
cmp eax, dword [ebp - 0x124]
jne 0x404150
test byte [ebp - 0x138], 1
mov dword [0x42bc20], ebx
mov eax, dword [ebx]
mov dword [0x42bc84], eax
je 0x404263
inc dword [0x42bc88]
mov eax, 9
dec eax
je 0x404271
add dword [ebx + eax*8 - 4], ebx
jmp 0x404268
mov eax, dword [0x427d18]
add ebx, 4
mov dword [ebx + 0x38], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], ebx
mov dword [esp], 0x42bc40
call fcn.00407a0f
xor eax, eax
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4