Function at 0x403a39
Capabilities:
Get file size

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x3e8
mov dword [0x42c19c], eax
mov eax, dword [0x40ae14]
mov esi, dword [eax]
lea edi, [esi + 0x6c000]
push 0x2000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push edi
call fcn.004075ae
mov dword [0x418010], eax
cmp eax, 0xffffffff
je 0x403bf1
mov ebp, eax
lea ebx, [esi + 0x5c000]
push edi
push ebx
call fcn.00407239
add esi, 0x70000
push ebx
call fcn.00407255
push eax
push esi
call fcn.00407239
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x42c194], eax
test eax, eax
je 0x403bfb
mov esi, eax
mov dword [esp + 8], ebp
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0
cmp dword [0x4341a0], 0
mov eax, 0x200
je 0x403aea
mov eax, 0x8000
cmp esi, eax
mov ebp, esi
jb 0x403af2
mov ebp, eax
push ebp
push 0x42c1a0
push dword [0x418010]
call fcn.00407654
test eax, eax
je 0x403cfb
cmp dword [0x4341a0], 0
je 0x403b2e
mov edi, ebx
test bl, 2
jne 0x403bb5
push 0
call fcn.004039d6
add esp, 4
jmp 0x403bb5
push 0x1c
push 0x42c1a0
lea eax, [esp + 0x18]
push eax
call fcn.0040758a
mov eax, dword [esp + 0x10]
cmp eax, 0xf
ja 0x403bb3
cmp dword [esp + 0x14], 0xdeadbeef
jne 0x403bb3
cmp dword [esp + 0x20], 0x74736e49
jne 0x403bb3
cmp dword [esp + 0x1c], 0x74666f73
jne 0x403bb3
cmp dword [esp + 0x18], 0x6c6c754e
jne 0x403bb3
mov ecx, dword [0x42c190]
mov dword [0x4341a0], ecx
or ebx, eax
mov eax, ebx
and eax, 2
mov ecx, dword [0x40b044]
or dword [ecx + 0x20], eax
mov eax, ebx
mov ebx, dword [esp + 0x28]
cmp ebx, esi
ja 0x403d15
mov edi, eax
and eax, 0xc
cmp eax, 4
je 0x403be3
add ebx, 0xfffffffc
cmp ebp, ebx
jb 0x403bad
mov ebp, ebx
inc dword [esp + 4]
jmp 0x403bb7
mov edi, ebx
mov ebx, esi
cmp ebx, dword [0x42c194]
jae 0x403bd1
push ebp
push 0x42c1a0
push dword [esp + 8]
call fcn.004081e4
mov dword [esp], eax
add dword [0x42c190], ebp
sub ebx, ebp
mov esi, ebx
mov ebx, edi
jne 0x403ad7
cmp dword [esp + 4], 0
sete cl
mov ebp, dword [esp + 8]
jmp 0x403c04
mov ebx, 0x40ae64
jmp 0x403d1a
mov cl, 1
mov dword [esp], 0
mov eax, dword [0x42c198]
test eax, eax
je 0x403c18
push eax
mov ebx, ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, ebx
mov dword [0x42c198], 0
mov ebx, 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
cmp dword [0x4341a0], 0
je 0x403d1a
test cl, cl
jne 0x403c75
xor eax, eax
push eax
push eax
push dword [0x42c190]
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0xc]
push 4
push eax
push dword [0x418010]
call fcn.00407654
test eax, eax
je 0x403d1a
mov eax, dword [esp]
cmp eax, dword [esp + 0xc]
jne 0x403d1a
push dword [esp + 0x24]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov eax, dword [0x4341a0]
add eax, 0x1c
xor esi, esi
push esi
push esi
push eax
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esp + 0x24]
push edi
push esi
push 0xffffffffffffffff
call fcn.00403d53
cmp eax, dword [esp + 0x24]
jne 0x403d1a
mov dword [0x4341a4], edi
mov eax, dword [edi]
mov dword [0x4341a8], eax
test byte [esp + 0x10], 1
je 0x403cc9
inc dword [0x4341ac]
mov eax, 0x40
add dword [edi + eax - 4], edi
add eax, 0xfffffff8
jne 0x403cce
xor ebx, ebx
push 1
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, edi
add ecx, 4
mov dword [edi + 0x3c], eax
push 0x40
push ecx
push 0x4341b0
call fcn.0040758a
jmp 0x403d1a
mov eax, dword [0x42c198]
test eax, eax
je 0x403d0b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x42c198], 0
mov ebx, 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
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 4