Function at 0x403681
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
call sub.KERNEL32.DLL_GetTickCount
push ebx
mov ebx, dword [0x40b688]
add eax, 0x3e8
add ebx, 0xd800
push 0x400
mov dword [0x435ab8], eax
push ebx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
push 3
push 0x80000000
push ebx
call fcn.004070a0
mov edx, 0x40b15e
mov dword [ebp - 0x30], eax
mov dword [0x40a010], eax
pop ecx
inc eax
je 0x403936
mov eax, dword [0x40b688]
push edx
add eax, 0xb800
push edx
push ebx
push eax
call fcn.00406aea
push eax
mov eax, dword [0x40b688]
add eax, 0xb800
push eax
call fcn.00406a72
sub esp, 0xc
push eax
mov eax, dword [0x40b688]
add eax, 0xe000
push eax
call fcn.00406aea
push 0
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0x38], 0
mov esi, eax
add esp, 0x18
mov dword [0x423890], eax
mov dword [ebp - 0x34], 0
jmp 0x403844
mov edx, dword [0x435ae8]
mov ebx, esi
cmp edx, 1
sbb eax, eax
and eax, 0xffff8200
add eax, 0x8000
cmp esi, eax
jl 0x403754
mov ebx, eax
push eax
push eax
push ebx
push 0x41b880
call fcn.00403358
pop edx
test eax, eax
pop ecx
jne 0x40377e
sub esp, 0xc
push 1
call fcn.00403601
mov edx, 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
add esp, 0x10
jmp 0x403936
cmp dword [0x435ae8], 0
jne 0x40380c
push eax
lea eax, [ebp - 0x2c]
push 0x1c
push 0x41b880
push eax
call fcn.0040665d
mov edx, dword [ebp - 0x2c]
pop ecx
test edx, 0xfffffff0
jne 0x403821
cmp dword [ebp - 0x28], 0xdeadbeef
jne 0x403821
cmp dword [ebp - 0x1c], 0x74736e49
jne 0x403821
cmp dword [ebp - 0x20], 0x74666f73
jne 0x403821
cmp dword [ebp - 0x24], 0x6c6c754e
jne 0x403821
mov eax, dword [0x4238a0]
or edi, edx
mov dword [0x435ae8], eax
mov eax, edi
and eax, 2
or dword [0x435a28], eax
mov eax, dword [ebp - 0x14]
cmp eax, esi
jg 0x403931
test edi, 8
jne 0x4037fe
test edi, 4
jne 0x40384c
lea esi, [eax - 4]
inc dword [ebp - 0x34]
cmp ebx, esi
jbe 0x403821
mov ebx, esi
jmp 0x403821
test edi, 2
jne 0x403821
sub esp, 0xc
push 0
call fcn.00403601
add esp, 0x10
cmp esi, dword [0x423890]
jge 0x40383c
push edx
push ebx
push 0x41b880
push dword [ebp - 0x38]
call fcn.004077f0
mov dword [ebp - 0x38], eax
pop eax
add dword [0x4238a0], ebx
sub esi, ebx
test esi, esi
jg 0x403737
sub esp, 0xc
push 1
call fcn.00403601
add esp, 0x10
mov edx, 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 [0x435ae8], 0
je 0x403936
cmp dword [ebp - 0x34], 0
je 0x4038a4
sub esp, 0xc
push dword [0x4238a0]
call fcn.0040333c
lea eax, [ebp - 0x10]
sub esp, 0xc
push 4
push eax
call fcn.00403358
add esp, 0x18
test eax, eax
je 0x403931
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x10]
jne 0x403931
push eax
push eax
push dword [ebp - 0x18]
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
push eax
mov eax, dword [0x435ae8]
add eax, 0x1c
push eax
call fcn.0040333c
add esp, 0xc
push dword [ebp - 0x18]
push ebx
push 0
push 0xffffffffffffffff
call fcn.00403373
mov edx, 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 eax, dword [ebp - 0x18]
jne 0x403936
mov dword [0x435a68], ebx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebx]
and edx, 1
mov dword [0x435ac8], eax
cmp edx, 1
mov eax, dword [0x435ad8]
sbb eax, 0xffffffff
mov dword [0x435ad8], eax
mov eax, 8
add dword [ebx + eax*8 - 4], ebx
dec eax
jne 0x403903
push 1
push 0
push 0
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_SetFilePointer
mov dword [ebx + 0x3c], eax
push eax
lea eax, [ebx + 4]
push pe_nt_image_headers32
push eax
push 0x435a78
call fcn.0040665d
xor edx, edx
pop eax
jmp 0x403936
mov edx, 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
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 4