Function at 0x40358c
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
push ebx
mov ebx, dword [0x40a474]
add ebx, 0x6c00
add eax, 0x3e8
push 0x400
mov dword [0x4244e8], eax
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 3
push 0x80000000
push ebx
call fcn.00406cd2
mov edx, 0x40a149
mov ebx, eax
mov dword [0x409010], eax
pop ecx
cmp eax, 0xffffffff
je 0x4038ce
mov eax, dword [0x40a474]
push edx
push edx
lea edx, [eax + 0x6c00]
add eax, 0x5c00
push edx
push eax
call fcn.0040675e
push eax
mov eax, dword [0x40a474]
add eax, 0x5c00
push eax
call fcn.004066ec
sub esp, 0xc
push eax
mov eax, dword [0x40a474]
add eax, 0x7000
push eax
call fcn.0040675e
push 0
push ebx
call sub.KERNEL32.dll_GetFileSize
mov dword [ebp - 0x144], 0
mov esi, eax
add esp, 0x18
mov dword [0x4144b0], eax
mov dword [ebp - 0x140], 0
jmp 0x403766
mov edx, dword [0x424518]
mov ebx, esi
cmp edx, 1
sbb eax, eax
and eax, 0xffff8200
add eax, 0x8000
cmp esi, eax
jl 0x40366d
mov ebx, eax
push eax
push eax
push ebx
push 0x40c460
call fcn.004031d4
pop edx
test eax, eax
pop ecx
jne 0x403697
sub esp, 0xc
push 1
call fcn.00403211
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 0x4038ce
cmp dword [0x424518], 0
jne 0x403728
push eax
lea eax, [ebp - 0x2c]
push 0x1c
push 0x40c460
push eax
call fcn.0040634e
mov edx, dword [ebp - 0x2c]
pop eax
test edx, 0xfffffff0
jne 0x40373d
cmp dword [ebp - 0x28], 0xdeadbeef
jne 0x40373d
cmp dword [ebp - 0x1c], 0x74736e49
jne 0x40373d
cmp dword [ebp - 0x20], 0x74666f73
jne 0x40373d
cmp dword [ebp - 0x24], 0x6c6c754e
jne 0x40373d
mov eax, dword [0x4144c0]
or edi, edx
mov dword [0x424518], eax
mov eax, edi
and eax, 2
or dword [0x424458], eax
mov eax, dword [ebp - 0x14]
cmp eax, esi
jg 0x4038c9
test edi, 8
jne 0x403717
test edi, 4
jne 0x40376e
lea esi, [eax - 4]
inc dword [ebp - 0x140]
cmp ebx, esi
jbe 0x40373d
mov ebx, esi
jmp 0x40373d
test edi, 2
jne 0x40373d
sub esp, 0xc
push 0
call fcn.00403211
add esp, 0x10
cmp esi, dword [0x4144b0]
jge 0x40375e
push eax
push ebx
push 0x40c460
push dword [ebp - 0x144]
call fcn.00407424
mov dword [ebp - 0x144], eax
pop eax
add dword [0x4144c0], ebx
sub esi, ebx
test esi, esi
jg 0x403650
sub esp, 0xc
push 1
call fcn.00403211
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 [0x424518], 0
je 0x4038ce
cmp dword [ebp - 0x140], 0
je 0x4037cc
sub esp, 0xc
push dword [0x4144c0]
call fcn.004031b8
lea eax, [ebp - 0x10]
sub esp, 0xc
push 4
push eax
call fcn.004031d4
add esp, 0x18
test eax, eax
je 0x4038c9
mov eax, dword [ebp - 0x144]
cmp eax, dword [ebp - 0x10]
jne 0x4038c9
push ecx
push ecx
push dword [ebp - 0x18]
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ecx, 0x4144d0
mov esi, eax
pop eax
pop edx
call fcn.00407490
lea ebx, [ebp - 0x130]
push eax
push eax
mov eax, dword [0x40a474]
add eax, 0x6400
push eax
push ebx
call fcn.00406bb7
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 0x4038ce
sub esp, 0xc
mov eax, dword [0x424518]
add eax, 0x1c
push eax
call fcn.004031b8
mov edx, dword [ebp - 0x2c]
add esp, 0xc
and edx, 4
mov dword [0x414490], 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 [0x4144a0], edx
push 0
push 0xffffffffffffffff
call fcn.00403470
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 0x4038ce
mov dword [0x424498], esi
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi]
and edx, 1
mov dword [0x4244f8], eax
cmp edx, 1
mov eax, dword [0x424508]
sbb eax, 0xffffffff
mov dword [0x424508], eax
mov eax, 8
add dword [esi + eax*8 - 4], esi
dec eax
jne 0x4038a4
mov eax, dword [0x414480]
mov dword [esi + 0x3c], eax
lea eax, [esi + 4]
push edi
push 0x40
push eax
push 0x4244a8
call fcn.0040634e
xor edx, edx
pop esi
jmp 0x4038ce
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