Function at 0x403a5c
Capabilities:
Get file size

Disassembly:
sub esp, 0x130
push ebx
push ebp
xor ebx, ebx
push edi
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2000
mov edi, 0x47e000
add eax, 0x3e8
push edi
push ebx
mov dword [0x447020], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push edi
call fcn.00407370
mov ebp, eax
mov dword [0x40b010], ebp
cmp ebp, 0xffffffff
jne 0x403ab1
mov eax, str.Error_launching_installer
jmp 0x403da4
push esi
push edi
mov esi, 0x476000
push esi
call fcn.00407560
push esi
call fcn.00407757
push eax
push 0x480000
call fcn.00407560
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [0x41512c], esi
test esi, esi
je 0x403bff
mov ebx, dword [esp + 0x144]
cmp dword [0x447030], 0
mov eax, 0x8000
mov edi, 0x200
cmovne edi, eax
cmp esi, edi
cmovb edi, esi
push edi
push 0x4151c8
call fcn.0040351d
test eax, eax
je 0x403d96
cmp dword [0x447030], 0
jne 0x403bc0
push 0x24
push 0x4151c8
lea eax, [esp + 0x20]
push eax
call fcn.00407098
test dword [esp + 0x18], 0xfffffe00
jne 0x403bcd
cmp dword [esp + 0x1c], 0xdeadbeef
jne 0x403bcd
cmp dword [esp + 0x28], 0x74736e49
jne 0x403bcd
cmp dword [esp + 0x24], 0x74666f73
jne 0x403bcd
cmp dword [esp + 0x20], 0x6c6c754e
jne 0x403bcd
or ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov eax, ebx
mov ecx, dword [0x415130]
and eax, 2
or dword [0x447100], eax
mov dword [0x447030], ecx
cmp edx, esi
ja 0x403d9e
mov eax, ebx
and al, 0xc
cmp al, 4
je 0x403bf6
inc dword [0x415128]
lea eax, [edx - 0x28]
push 0x24
pop edi
push edi
add eax, ecx
pop esi
mov dword [0x415130], eax
add eax, 0x20
push 0
push eax
call fcn.00403591
jmp 0x403bcd
test bl, 2
jne 0x403bcd
push 0
call fcn.004039f8
pop ecx
cmp esi, dword [0x41512c]
jae 0x403be8
push edi
push 0x4151c8
push dword [esp + 0x18]
call fcn.00407860
mov dword [esp + 0x10], eax
add dword [0x415130], edi
sub esi, edi
jne 0x403aef
mov ebx, dword [esp + 0x10]
mov edi, 0x47e000
test byte [esp + 0x18], 1
mov eax, dword [0x44702c]
je 0x403c11
inc eax
mov dword [0x44702c], eax
test byte [esp + 0x18], 0x80
mov ecx, dword [0x447028]
je 0x403c25
inc ecx
mov dword [0x447028], ecx
test dword [esp + 0x18], 0x100
je 0x403c35
inc dword [0x447024]
test ecx, ecx
je 0x403c99
test eax, eax
jne 0x403c99
push edi
lea eax, [esp + 0x40]
push eax
call fcn.00407560
lea eax, [esp + 0x3c]
push eax
call fcn.00407718
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00407560
lea eax, [esp + 0x3c]
push eax
push str._s.nsisbin
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x3c]
push 3
push 0x80000000
push eax
call fcn.00407370
mov dword [0x40b014], eax
cmp eax, 0xffffffff
jne 0x403c99
cmp dword [0x447024], 0
je 0x403d9e
push 1
call fcn.004039f8
cmp dword [0x447030], 0
pop ecx
je 0x403d9e
cmp dword [0x415128], 0
je 0x403d14
mov eax, dword [0x415130]
add eax, 0xfffffffc
push 0
push eax
call fcn.00403591
push 4
lea eax, [esp + 0x18]
push eax
push dword [0x40b010]
call fcn.0040739d
test eax, eax
je 0x403d9e
push 4
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00407860
mov esi, eax
lea eax, [esp + 0x10]
push 4
push eax
push dword [0x40b010]
call fcn.0040739d
test eax, eax
je 0x403d9e
cmp esi, dword [esp + 0x10]
jne 0x403d9e
push dword [esp + 0x2c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x447030]
mov esi, eax
add ecx, 0x24
push ecx
call fcn.004035a9
push dword [esp + 0x14]
push dword [esp + 0x30]
push esi
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
call fcn.004035c0
mov ecx, eax
mov edi, edx
mov eax, dword [esp + 0x2c]
cdq
cmp ecx, eax
jne 0x403d9e
cmp edi, edx
jne 0x403d9e
mov dword [0x447038], esi
mov eax, dword [esi]
push 8
mov dword [0x447034], eax
lea eax, [esi + 0x44]
pop ecx
lea eax, [eax - 8]
add dword [eax], esi
sub ecx, 1
jne 0x403d6b
push 1
push ecx
push ecx
push ebp
call fcn.0040354b
mov dword [esi + 0x3c], eax
lea eax, [esi + 4]
push 0x40
push eax
push 0x447040
call fcn.00407098
xor eax, eax
jmp 0x403da3
push 1
call fcn.004039f8
pop ecx
mov eax, 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
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x130
ret 4