Function at 0x403af6
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x16c
mov edi, dword [ebp + 8]
call sub.KERNEL32.dll_GetTickCount
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x43ac00
mov dword [esp], 0
add eax, 0x3e8
mov dword [0x430884], eax
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x43ac00
call fcn.00407a4e
mov edx, 0x40b149
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
mov dword [0x40a010], eax
je 0x403ee1
mov dword [esp + 4], 0x43ac00
mov dword [esp], 0x439c00
call fcn.0040756a
push ecx
push ecx
mov dword [esp], 0x439c00
call fcn.004074ee
push edx
mov dword [esp + 4], eax
mov dword [esp], 0x43b000
call fcn.0040756a
push esi
push esi
mov dword [esp], ebx
mov dword [esp + 4], 0
call sub.KERNEL32.dll_GetFileSize
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x150], 0
push ecx
mov ebx, eax
push ecx
mov dword [0x415c58], eax
jmp 0x403d03
cmp dword [0x4308b4], 1
sbb esi, esi
and esi, 0xffff8200
add esi, 0x8000
cmp esi, ebx
jle 0x403be9
mov esi, ebx
mov dword [esp + 4], esi
mov dword [esp], 0x40dc44
call fcn.0040360d
test eax, eax
push edx
push edx
jne 0x403c10
mov dword [esp], 1
call fcn.00403658
jmp 0x403edc
cmp dword [0x4308b4], 0
jne 0x403cae
lea eax, [ebp - 0x38]
mov dword [esp], eax
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 0x40dc44
call fcn.004071de
mov eax, dword [ebp - 0x38]
sub esp, 0xc
test eax, 0xfffffff0
jne 0x403cc2
cmp dword [ebp - 0x34], 0xdeadbeef
jne 0x403cc2
cmp dword [ebp - 0x28], 0x74736e49
jne 0x403cc2
cmp dword [ebp - 0x2c], 0x74666f73
jne 0x403cc2
cmp dword [ebp - 0x30], 0x6c6c754e
jne 0x403cc2
or edi, eax
mov edx, dword [0x415c5c]
mov eax, edi
and eax, 2
or dword [0x4307f4], eax
mov eax, dword [ebp - 0x20]
mov dword [0x4308b4], edx
cmp eax, ebx
jg 0x403edc
test edi, 8
jne 0x403c9d
test edi, 4
jne 0x403d0b
lea ebx, [eax - 4]
inc dword [ebp - 0x14c]
cmp esi, ebx
mov edx, ebx
ja 0x403cc4
jmp 0x403cc2
test edi, 2
jne 0x403cc2
mov dword [esp], 0
call fcn.00403658
mov edx, esi
cmp ebx, dword [0x415c58]
jge 0x403cfb
mov eax, dword [ebp - 0x150]
mov dword [esp + 8], edx
mov dword [ebp - 0x154], edx
mov dword [esp + 4], 0x40dc44
mov dword [esp], eax
call fcn.004081d4
mov edx, dword [ebp - 0x154]
sub esp, 0xc
mov dword [ebp - 0x150], eax
add dword [0x415c5c], edx
sub ebx, edx
test ebx, ebx
jg 0x403bce
mov dword [esp], 1
call fcn.00403658
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 [0x4308b4], 0
je 0x403ee1
cmp dword [ebp - 0x14c], 0
je 0x403d6c
mov eax, dword [0x415c5c]
mov dword [esp], eax
call fcn.004035dc
lea eax, [ebp - 0x1c]
push ebx
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.0040360d
test eax, eax
push ecx
push ecx
je 0x403edc
mov eax, dword [ebp - 0x150]
cmp eax, dword [ebp - 0x1c]
jne 0x403edc
mov eax, dword [ebp - 0x24]
lea esi, [ebp - 0x13c]
mov dword [esp], 0x40
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GlobalAlloc
mov dword [0x415c70], 8
mov dword [0x41618c], 0
mov dword [0x416188], 0
mov dword [0x41f818], 0x417810
mov dword [0x41f814], 0x417810
push edx
mov ebx, eax
push edx
mov dword [0x41f810], 0x41f810
mov dword [esp + 4], 0x43a400
mov dword [esp], esi
call fcn.00407930
push edi
push edi
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], esi
call sub.KERNEL32.dll_CreateFileA
mov edx, 0x40b22f
sub esp, 0x1c
mov dword [0x40a014], eax
inc eax
je 0x403ee1
mov eax, dword [0x4308b4]
add eax, 0x1c
mov dword [esp], eax
call fcn.004035dc
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
and edx, 4
cmp edx, 1
sbb edx, edx
and edx, 4
mov dword [0x415c50], eax
lea eax, [ecx + eax - 0x1c]
sub eax, edx
mov dword [0x415c54], eax
mov eax, dword [ebp - 0x24]
push esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call fcn.0040394b
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
sub esp, 0x10
cmp eax, dword [ebp - 0x24]
jne 0x403ee1
mov dword [0x430834], ebx
mov eax, dword [ebx]
mov edx, dword [ebp - 0x38]
mov dword [0x430894], eax
mov eax, dword [0x4308a4]
and edx, 1
cmp edx, 1
sbb eax, 0xffffffff
mov dword [0x4308a4], eax
mov eax, 8
dec eax
add dword [ebx + eax*8 + 4], ebx
test eax, eax
jne 0x403ea9
mov eax, dword [0x415c4c]
mov dword [ebx + 0x3c], eax
add ebx, 4
mov dword [esp + 8], 0x40
mov dword [esp + 4], ebx
mov dword [esp], 0x430844
call fcn.004071de
xor edx, edx
sub esp, 0xc
jmp 0x403ee1
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