Function at 0x403555
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x13c
mov edi, dword [ebp + 8]
call sub.KERNEL32.dll_GetTickCount
add eax, 0x3e8
mov dword [0x440cf8], eax
push eax
push 0x2000
push 0x481000
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 3
push 0x80000000
push 0x481000
call fcn.00406930
mov ebx, eax
mov dword [0x409010], eax
mov edx, 0x40a149
pop eax
cmp ebx, 0xffffffff
je 0x403879
push eax
push eax
push 0x481000
push 0x479000
call fcn.004064a4
push eax
push 0x479000
call fcn.00406432
sub esp, 0xc
push eax
push 0x483000
call fcn.004064a4
push 0
push ebx
call sub.KERNEL32.dll_GetFileSize
mov dword [ebp - 0x144], 0
mov esi, eax
add esp, 0x18
mov dword [0x41d8b0], eax
mov dword [ebp - 0x140], 0
jmp 0x403717
mov edx, dword [0x440d28]
mov ebx, esi
cmp edx, 1
sbb eax, eax
and eax, 0xffff8200
add eax, 0x8000
cmp esi, eax
jl 0x40361e
mov ebx, eax
push eax
push eax
push ebx
push 0x415860
call fcn.00403140
pop edx
test eax, eax
pop ecx
jne 0x403648
sub esp, 0xc
push 1
call fcn.0040319b
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 0x403879
cmp dword [0x440d28], 0
jne 0x4036d9
push eax
lea eax, [ebp - 0x2c]
push 0x1c
push 0x415860
push eax
call fcn.0040614f
mov edx, dword [ebp - 0x2c]
pop eax
test edx, 0xfffffff0
jne 0x4036ee
cmp dword [ebp - 0x28], 0xdeadbeef
jne 0x4036ee
cmp dword [ebp - 0x1c], 0x74736e49
jne 0x4036ee
cmp dword [ebp - 0x20], 0x74666f73
jne 0x4036ee
cmp dword [ebp - 0x24], 0x6c6c754e
jne 0x4036ee
mov eax, dword [0x41d8c0]
or edi, edx
mov dword [0x440d28], eax
mov eax, edi
and eax, 2
or dword [0x440c68], eax
mov eax, dword [ebp - 0x14]
cmp eax, esi
jg 0x403874
test edi, 8
jne 0x4036c8
test edi, 4
jne 0x40371f
lea esi, [eax - 4]
inc dword [ebp - 0x140]
cmp ebx, esi
jbe 0x4036ee
mov ebx, esi
jmp 0x4036ee
test edi, 2
jne 0x4036ee
sub esp, 0xc
push 0
call fcn.0040319b
add esp, 0x10
cmp esi, dword [0x41d8b0]
jge 0x40370f
push eax
push ebx
push 0x415860
push dword [ebp - 0x144]
call fcn.00406f4c
mov dword [ebp - 0x144], eax
pop eax
add dword [0x41d8c0], ebx
sub esi, ebx
test esi, esi
jg 0x403601
sub esp, 0xc
push 1
call fcn.0040319b
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 [0x440d28], 0
je 0x403879
cmp dword [ebp - 0x140], 0
je 0x40377d
sub esp, 0xc
push dword [0x41d8c0]
call fcn.00403124
lea eax, [ebp - 0x10]
sub esp, 0xc
push 4
push eax
call fcn.00403140
add esp, 0x18
test eax, eax
je 0x403874
mov eax, dword [ebp - 0x144]
cmp eax, dword [ebp - 0x10]
jne 0x403874
push ecx
push ecx
push dword [ebp - 0x18]
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ecx, 0x41d8d0
mov esi, eax
pop eax
pop edx
call fcn.00406fb8
lea ebx, [ebp - 0x130]
push eax
push eax
push 0x47d000
push ebx
call fcn.00406816
sub esp, 0xc
push 0
push 0x4000100
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.KERNEL32.dll_CreateFileA
mov edx, 0x40a22f
mov dword [0x409014], eax
add esp, 0x14
inc eax
je 0x403879
sub esp, 0xc
mov eax, dword [0x440d28]
add eax, 0x1c
push eax
call fcn.00403124
mov edx, dword [ebp - 0x2c]
add esp, 0xc
and edx, 4
mov dword [0x41d890], eax
cmp edx, 1
mov edx, dword [ebp - 0x14]
sbb ecx, ecx
sub edx, 0x1c
push dword [ebp - 0x18]
and ecx, 4
add edx, eax
sub edx, ecx
push esi
mov dword [0x41d8a0], edx
push 0
push 0xffffffffffffffff
call fcn.00403409
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 0x403879
mov dword [0x440ca8], esi
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi]
and edx, 1
mov dword [0x440d08], eax
cmp edx, 1
mov eax, dword [0x440d18]
sbb eax, 0xffffffff
mov dword [0x440d18], eax
mov eax, 8
add dword [esi + eax*8 - 4], esi
dec eax
jne 0x40384f
mov eax, dword [0x41d880]
mov dword [esi + 0x3c], eax
push eax
lea eax, [esi + 4]
push 0x40
push eax
push 0x440cb8
call fcn.0040614f
xor edx, edx
pop eax
jmp 0x403879
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