Function at 0x403bd4
Capabilities:
Get file size

Disassembly:
sub esp, 0x234
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov ebp, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2000
mov edi, 0x4e0000
add eax, 0x3e8
push edi
push ebx
mov dword [0x473560], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push edi
call fcn.004075d9
mov esi, eax
mov dword [0x40c010], esi
cmp esi, 0xffffffff
jne 0x403c28
mov eax, str.Error_launching_installer
jmp 0x403ed7
push edi
mov edi, 0x4d0000
push edi
call fcn.004077d8
push edi
call fcn.00407a12
push eax
push 0x4e4000
call fcn.004077d8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [0x420160], edi
test edi, edi
je 0x403d68
mov ebx, dword [esp + 0x248]
cmp dword [0x473570], 0
mov eax, 0x8000
mov esi, 0x200
cmovne esi, eax
cmp edi, esi
cmovb esi, edi
push esi
push 0x420200
call fcn.004036b4
test eax, eax
je 0x403eca
cmp dword [0x473570], 0
jne 0x403d35
push 0x24
push 0x420200
lea eax, [esp + 0x20]
push eax
call fcn.00407318
test dword [esp + 0x18], 0xfffffe00
jne 0x403d42
cmp dword [esp + 0x1c], 0xdeadbeef
jne 0x403d42
cmp dword [esp + 0x28], 0x74736e49
jne 0x403d42
cmp dword [esp + 0x24], 0x74666f73
jne 0x403d42
cmp dword [esp + 0x20], 0x6c6c754e
jne 0x403d42
or ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov eax, ebx
mov ecx, dword [0x420164]
and eax, 2
or dword [0x473640], eax
mov dword [0x473570], ecx
cmp edx, edi
ja 0x403ed2
mov eax, ebx
and al, 0xc
cmp al, 4
je 0x403d66
inc dword [0x420148]
lea eax, [edx - 0x28]
push 0x24
pop esi
push esi
add eax, ecx
pop edi
mov dword [0x420164], eax
add eax, 0x20
push 0
push eax
call fcn.00403710
jmp 0x403d42
test bl, 2
jne 0x403d42
push 0
call fcn.00403b2e
pop ecx
cmp edi, dword [0x420160]
jae 0x403d58
push esi
push 0x420200
push ebp
call fcn.00407b3c
mov ebp, eax
add dword [0x420164], esi
sub edi, esi
jne 0x403c64
xor ebx, ebx
test byte [esp + 0x18], 1
mov eax, dword [0x47356c]
je 0x403d7a
inc eax
mov dword [0x47356c], eax
test byte [esp + 0x18], 0x80
mov ecx, dword [0x473568]
je 0x403d8e
inc ecx
mov dword [0x473568], ecx
test dword [esp + 0x18], 0x100
je 0x403d9e
inc dword [0x473564]
test ecx, ecx
je 0x403e06
test eax, eax
jne 0x403e06
push 0x4e0000
lea eax, [esp + 0x40]
push eax
call fcn.004077d8
lea eax, [esp + 0x3c]
push eax
call fcn.004079ce
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004077d8
lea eax, [esp + 0x3c]
push eax
push str._s.nsisbin
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3c]
push 3
push 0x80000000
push eax
call fcn.004075d9
mov dword [0x40c014], eax
cmp eax, 0xffffffff
jne 0x403e06
cmp dword [0x473564], 0
je 0x403ed2
push 1
call fcn.00403b2e
cmp dword [0x473570], 0
pop ecx
je 0x403ed2
cmp dword [0x420148], 0
je 0x403e78
mov eax, dword [0x420164]
add eax, 0xfffffffc
push ebx
push eax
call fcn.00403710
push 4
lea eax, [esp + 0x14]
push eax
push dword [0x40c010]
call fcn.00407606
test eax, eax
je 0x403ed2
push 4
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.00407b3c
mov esi, eax
lea eax, [esp + 0x14]
push 4
push eax
push dword [0x40c010]
call fcn.00407606
test eax, eax
je 0x403ed2
cmp esi, dword [esp + 0x14]
jne 0x403ed2
push dword [esp + 0x2c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, 0x420170
mov esi, eax
call fcn.004089d4
push 0x4d8000
lea eax, [esp + 0x40]
push eax
call fcn.00407714
push ebx
push 0x4000100
push 2
push ebx
push ebx
push 0xc0000000
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x40c018], eax
cmp eax, 0xffffffff
jne 0x403ee4
mov eax, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x403ed7
push 1
call fcn.00403b2e
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 edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret 4
mov eax, dword [0x473570]
add eax, 0x24
push eax
call fcn.00403728
push dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x30]
add ecx, ecx
mov dword [0x420158], eax
not ecx
push esi
and ecx, 8
sub eax, ecx
mov ecx, dword [esp + 0x3c]
push ebx
push 0xffffffffffffffff
add ecx, 0xffffffdc
push 0xffffffffffffffff
add eax, ecx
push 1
mov dword [0x42015c], eax
call fcn.0040392a
mov ecx, eax
mov edi, edx
mov eax, dword [esp + 0x2c]
cdq
cmp ecx, eax
jne 0x403ed2
cmp edi, edx
jne 0x403ed2
mov dword [0x473578], esi
mov eax, dword [esi]
push 8
mov dword [0x473574], eax
lea eax, [esi + 0x44]
pop ecx
lea eax, [eax - 8]
add dword [eax], esi
sub ecx, 1
jne 0x403f4b
mov eax, dword [0x42014c]
mov dword [esi + 0x3c], eax
lea eax, [esi + 4]
push 0x40
push eax
push 0x473580
call fcn.00407318
xor eax, eax
jmp 0x403ed7