Function at 0x40355d
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 [0x49dcf8], eax
push eax
push 0x7d00
push 0x592f00
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 3
push 0x80000000
push 0x592f00
call fcn.0040693d
mov ebx, eax
mov dword [0x409010], eax
mov edx, 0x40a149
pop eax
cmp ebx, 0xffffffff
je 0x403881
push eax
push eax
push 0x592f00
push 0x573b00
call fcn.004064b0
push eax
push 0x573b00
call fcn.0040643e
sub esp, 0xc
push eax
push 0x59ac00
call fcn.004064b0
push 0
push ebx
call sub.KERNEL32.dll_GetFileSize
mov dword [ebp - 0x144], 0
mov esi, eax
add esp, 0x18
mov dword [0x43a9b0], eax
mov dword [ebp - 0x140], 0
jmp 0x40371f
mov edx, dword [0x49dd28]
mov ebx, esi
cmp edx, 1
sbb eax, eax
and eax, 0xffff8200
add eax, 0x8000
cmp esi, eax
jl 0x403626
mov ebx, eax
push eax
push eax
push ebx
push 0x432960
call fcn.00403148
pop edx
test eax, eax
pop ecx
jne 0x403650
sub esp, 0xc
push 1
call fcn.004031a3
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 0x403881
cmp dword [0x49dd28], 0
jne 0x4036e1
push eax
lea eax, [ebp - 0x2c]
push 0x1c
push 0x432960
push eax
call fcn.0040615b
mov edx, dword [ebp - 0x2c]
pop eax
test edx, 0xfffffff0
jne 0x4036f6
cmp dword [ebp - 0x28], 0xdeadbeef
jne 0x4036f6
cmp dword [ebp - 0x1c], 0x74736e49
jne 0x4036f6
cmp dword [ebp - 0x20], 0x74666f73
jne 0x4036f6
cmp dword [ebp - 0x24], 0x6c6c754e
jne 0x4036f6
mov eax, dword [0x43a9c0]
or edi, edx
mov dword [0x49dd28], eax
mov eax, edi
and eax, 2
or dword [0x49dc68], eax
mov eax, dword [ebp - 0x14]
cmp eax, esi
jg 0x40387c
test edi, 8
jne 0x4036d0
test edi, 4
jne 0x403727
lea esi, [eax - 4]
inc dword [ebp - 0x140]
cmp ebx, esi
jbe 0x4036f6
mov ebx, esi
jmp 0x4036f6
test edi, 2
jne 0x4036f6
sub esp, 0xc
push 0
call fcn.004031a3
add esp, 0x10
cmp esi, dword [0x43a9b0]
jge 0x403717
push eax
push ebx
push 0x432960
push dword [ebp - 0x144]
call fcn.00406f5c
mov dword [ebp - 0x144], eax
pop eax
add dword [0x43a9c0], ebx
sub esi, ebx
test esi, esi
jg 0x403609
sub esp, 0xc
push 1
call fcn.004031a3
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 [0x49dd28], 0
je 0x403881
cmp dword [ebp - 0x140], 0
je 0x403785
sub esp, 0xc
push dword [0x43a9c0]
call fcn.0040312c
lea eax, [ebp - 0x10]
sub esp, 0xc
push 4
push eax
call fcn.00403148
add esp, 0x18
test eax, eax
je 0x40387c
mov eax, dword [ebp - 0x144]
cmp eax, dword [ebp - 0x10]
jne 0x40387c
push ecx
push ecx
push dword [ebp - 0x18]
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ecx, 0x43a9d0
mov esi, eax
pop eax
pop edx
call fcn.00406fc8
lea ebx, [ebp - 0x130]
push eax
push eax
push 0x583500
push ebx
call fcn.00406823
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 0x403881
sub esp, 0xc
mov eax, dword [0x49dd28]
add eax, 0x1c
push eax
call fcn.0040312c
mov edx, dword [ebp - 0x2c]
add esp, 0xc
and edx, 4
mov dword [0x43a990], 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 [0x43a9a0], edx
push 0
push 0xffffffffffffffff
call fcn.00403411
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 0x403881
mov dword [0x49dca8], esi
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi]
and edx, 1
mov dword [0x49dd08], eax
cmp edx, 1
mov eax, dword [0x49dd18]
sbb eax, 0xffffffff
mov dword [0x49dd18], eax
mov eax, 8
add dword [esi + eax*8 - 4], esi
dec eax
jne 0x403857
mov eax, dword [0x43a980]
mov dword [esi + 0x3c], eax
push eax
lea eax, [esi + 4]
push 0x40
push eax
push 0x49dcb8
call fcn.0040615b
xor edx, edx
pop eax
jmp 0x403881
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