Function at 0x4039a9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [ebp + 8]
call sub.KERNEL32.dll_GetTickCount
add eax, 0x3e8
mov dword [esp + 8], 0x400
mov dword [0x430998], eax
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.0040780e
mov dword [ebp - 0x3c], eax
sub esp, 0xc
mov dword [0x40a010], eax
mov eax, 0x40b149
cmp dword [ebp - 0x3c], 0xffffffff
je 0x403ce1
mov dword [esp + 4], 0x43ac00
mov dword [esp], 0x439c00
call fcn.00407326
push eax
push eax
mov dword [esp], 0x439c00
call fcn.004072aa
push esi
mov dword [esp + 4], eax
mov dword [esp], 0x43b000
call fcn.00407326
mov eax, dword [ebp - 0x3c]
push ebx
push ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileSize
mov dword [ebp - 0x40], 0
mov ebx, eax
mov dword [0x421c70], eax
push ecx
mov dword [ebp - 0x44], 0
push ecx
jmp 0x403ba3
cmp dword [0x4309c8], 1
sbb esi, esi
and esi, 0xffff8200
add esi, 0x8000
cmp esi, ebx
jle 0x403a98
mov esi, ebx
mov dword [esp + 4], esi
mov dword [esp], 0x419c60
call fcn.00403611
test eax, eax
push edx
push edx
jne 0x403abf
mov dword [esp], 1
call fcn.00403911
jmp 0x403cdc
cmp dword [0x4309c8], 0
jne 0x403b5a
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], 0x419c60
call fcn.00406f9a
mov eax, dword [ebp - 0x38]
sub esp, 0xc
test eax, 0xfffffff0
jne 0x403b6e
cmp dword [ebp - 0x34], 0xdeadbeef
jne 0x403b6e
cmp dword [ebp - 0x28], 0x74736e49
jne 0x403b6e
cmp dword [ebp - 0x2c], 0x74666f73
jne 0x403b6e
cmp dword [ebp - 0x30], 0x6c6c754e
jne 0x403b6e
or edi, eax
mov edx, dword [0x421c80]
mov eax, edi
mov dword [0x4309c8], edx
and eax, 2
or dword [0x430908], eax
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jg 0x403cdc
test edi, 8
jne 0x403b4c
test edi, 4
jne 0x403bab
lea ebx, [eax - 4]
inc dword [ebp - 0x40]
mov edx, ebx
cmp esi, ebx
ja 0x403b70
jmp 0x403b6e
test edi, 2
jne 0x403b6e
mov dword [esp], 0
call fcn.00403911
mov edx, esi
cmp ebx, dword [0x421c70]
jge 0x403b9b
mov eax, dword [ebp - 0x44]
mov dword [esp + 8], edx
mov dword [ebp - 0x48], edx
mov dword [esp + 4], 0x419c60
mov dword [esp], eax
call fcn.00407f98
mov edx, dword [ebp - 0x48]
sub esp, 0xc
mov dword [ebp - 0x44], eax
add dword [0x421c80], edx
sub ebx, edx
test ebx, ebx
jg 0x403a7d
mov dword [esp], 1
call fcn.00403911
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
cmp dword [0x4309c8], 0
je 0x403ce1
cmp dword [ebp - 0x40], 0
je 0x403c06
mov eax, dword [0x421c80]
mov dword [esp], eax
call fcn.004035e0
lea eax, [ebp - 0x1c]
push ecx
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.00403611
test eax, eax
push edx
push edx
je 0x403cdc
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x1c]
jne 0x403cdc
mov eax, dword [ebp - 0x24]
mov dword [esp], 0x40
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
mov eax, dword [0x4309c8]
push edi
add eax, 0x1c
push edi
mov dword [esp], eax
call fcn.004035e0
mov eax, dword [ebp - 0x24]
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call fcn.0040365c
mov edx, eax
sub esp, 0x10
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
cmp edx, dword [ebp - 0x24]
jne 0x403ce1
mov dword [0x430948], ebx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebx]
and edx, 1
mov dword [0x4309a8], eax
cmp edx, 1
mov eax, dword [0x4309b8]
sbb eax, 0xffffffff
mov dword [0x4309b8], eax
mov eax, 8
dec eax
add dword [ebx + eax*8 + 4], ebx
test eax, eax
jne 0x403c88
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
mov dword [ebx + 0x3c], eax
add ebx, 4
mov dword [esp + 8], 0x40
mov dword [esp + 4], ebx
mov dword [esp], 0x430958
call fcn.00406f9a
xor eax, eax
sub esp, 0xc
jmp 0x403ce1
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
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4