Function at 0x403530
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 [0x424ce8], eax
push eax
push 0x400
push 0x42ec00
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 3
push 0x80000000
push 0x42ec00
call fcn.004067cc
mov ebx, eax
mov dword [0x40900c], eax
mov edx, 0x40a149
pop eax
cmp ebx, 0xffffffff
je 0x403854
push eax
push eax
push 0x42ec00
push 0x42dc00
call fcn.00406340
push eax
push 0x42dc00
call fcn.004062ce
sub esp, 0xc
push eax
push 0x42f000
call fcn.00406340
push 0
push ebx
call sub.KERNEL32.dll_GetFileSize
mov dword [ebp - 0x144], 0
mov esi, eax
add esp, 0x18
mov dword [0x414cb0], eax
mov dword [ebp - 0x140], 0
jmp 0x4036f2
mov edx, dword [0x424d18]
mov ebx, esi
cmp edx, 1
sbb eax, eax
and eax, 0xffff8200
add eax, 0x8000
cmp esi, eax
jl 0x4035f9
mov ebx, eax
push eax
push eax
push ebx
push 0x40cc60
call fcn.0040312c
pop edx
test eax, eax
pop ecx
jne 0x403623
sub esp, 0xc
push 1
call fcn.00403187
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 0x403854
cmp dword [0x424d18], 0
jne 0x4036b4
push eax
lea eax, [ebp - 0x2c]
push 0x1c
push 0x40cc60
push eax
call fcn.00405feb
mov edx, dword [ebp - 0x2c]
pop eax
test edx, 0xfffffff0
jne 0x4036c9
cmp dword [ebp - 0x28], 0xdeadbeef
jne 0x4036c9
cmp dword [ebp - 0x1c], 0x74736e49
jne 0x4036c9
cmp dword [ebp - 0x20], 0x74666f73
jne 0x4036c9
cmp dword [ebp - 0x24], 0x6c6c754e
jne 0x4036c9
mov eax, dword [0x414cc0]
or edi, edx
mov dword [0x424d18], eax
mov eax, edi
and eax, 2
or dword [0x424c58], eax
mov eax, dword [ebp - 0x14]
cmp eax, esi
jg 0x40384f
test edi, 8
jne 0x4036a3
test edi, 4
jne 0x4036fa
lea esi, [eax - 4]
inc dword [ebp - 0x140]
cmp ebx, esi
jbe 0x4036c9
mov ebx, esi
jmp 0x4036c9
test edi, 2
jne 0x4036c9
sub esp, 0xc
push 0
call fcn.00403187
add esp, 0x10
cmp esi, dword [0x414cb0]
jge 0x4036ea
push eax
push ebx
push 0x40cc60
push dword [ebp - 0x144]
call fcn.00406de8
mov dword [ebp - 0x144], eax
pop eax
add dword [0x414cc0], ebx
sub esi, ebx
test esi, esi
jg 0x4035dc
sub esp, 0xc
push 1
call fcn.00403187
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 [0x424d18], 0
je 0x403854
cmp dword [ebp - 0x140], 0
je 0x403758
sub esp, 0xc
push dword [0x414cc0]
call fcn.00403110
lea eax, [ebp - 0x10]
sub esp, 0xc
push 4
push eax
call fcn.0040312c
add esp, 0x18
test eax, eax
je 0x40384f
mov eax, dword [ebp - 0x144]
cmp eax, dword [ebp - 0x10]
jne 0x40384f
push ecx
push ecx
push dword [ebp - 0x18]
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ecx, 0x414cd0
mov esi, eax
pop eax
pop edx
call fcn.00406e54
lea ebx, [ebp - 0x130]
push eax
push eax
push 0x42e400
push ebx
call fcn.004066b2
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 [0x409010], eax
add esp, 0x14
inc eax
je 0x403854
sub esp, 0xc
mov eax, dword [0x424d18]
add eax, 0x1c
push eax
call fcn.00403110
mov edx, dword [ebp - 0x2c]
add esp, 0xc
and edx, 4
mov dword [0x414c90], 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 [0x414ca0], edx
push 0
push 0xffffffffffffffff
call fcn.004033e4
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 0x403854
mov dword [0x424c98], esi
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi]
and edx, 1
mov dword [0x424cf8], eax
cmp edx, 1
mov eax, dword [0x424d08]
sbb eax, 0xffffffff
mov dword [0x424d08], eax
mov eax, 8
add dword [esi + eax*8 - 4], esi
dec eax
jne 0x40382a
mov eax, dword [0x414c80]
mov dword [esi + 0x3c], eax
push eax
lea eax, [esi + 4]
push 0x40
push eax
push 0x424ca8
call fcn.00405feb
xor edx, edx
pop eax
jmp 0x403854
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