Function at 0x40383d
Capabilities:
Get file size

Disassembly:
sub esp, 0x234
push ebx
push ebp
xor ebx, ebx
push edi
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2004
mov edi, 0x4dd0d8
add eax, 0x3e8
push edi
push ebx
mov dword [0x470e20], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push edi
call fcn.00406e50
mov ebp, eax
mov dword [0x40b010], ebp
cmp ebp, 0xffffffff
jne 0x403892
mov eax, str.Error_launching_installer
jmp 0x403b85
push esi
push edi
mov esi, 0x4cd0b8
push esi
call fcn.00407059
push esi
call fcn.00407238
push eax
push 0x4e10e0
call fcn.00407059
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [0x41f154], esi
test esi, esi
je 0x4039e2
mov ebx, dword [esp + 0x248]
cmp dword [0x470dbc], 0
mov eax, 0x8000
mov edi, 0x200
cmovne edi, eax
cmp esi, edi
cmovb edi, esi
push edi
push 0x41f1f0
call fcn.004032fa
test eax, eax
je 0x403b77
cmp dword [0x470dbc], 0
jne 0x4039a3
push 0x24
push 0x41f1f0
lea eax, [esp + 0x20]
push eax
call fcn.00406bd7
test dword [esp + 0x18], 0xfffffe00
jne 0x4039b0
cmp dword [esp + 0x1c], 0xdeadbeef
jne 0x4039b0
cmp dword [esp + 0x28], 0x74736e49
jne 0x4039b0
cmp dword [esp + 0x24], 0x74666f73
jne 0x4039b0
cmp dword [esp + 0x20], 0x6c6c754e
jne 0x4039b0
or ebx, dword [esp + 0x18]
mov ecx, dword [0x41f158]
mov eax, ebx
and eax, 2
mov dword [0x470dbc], ecx
or dword [0x470ea0], eax
mov eax, dword [esp + 0x30]
cmp eax, esi
ja 0x403b7f
test bl, 8
jne 0x403981
test bl, 4
jne 0x4039d9
inc dword [0x41f150]
add eax, 0xffffffd8
push 0x24
pop edi
push edi
add eax, ecx
pop esi
mov dword [0x41f158], eax
add eax, 0x20
push 0
push eax
call fcn.00403372
jmp 0x4039b0
test bl, 2
jne 0x4039b0
push 0
call fcn.004037d9
pop ecx
cmp esi, dword [0x41f154]
jae 0x4039cb
push edi
push 0x41f1f0
push dword [esp + 0x18]
call fcn.0040735a
mov dword [esp + 0x10], eax
add dword [0x41f158], edi
sub esi, edi
jne 0x4038d0
mov ebx, dword [esp + 0x10]
mov edi, 0x4dd0d8
test byte [esp + 0x18], 1
mov eax, dword [0x470db8]
je 0x4039f4
inc eax
mov dword [0x470db8], eax
test byte [esp + 0x18], 0x80
mov ecx, dword [0x470db4]
je 0x403a08
inc ecx
mov dword [0x470db4], ecx
test dword [esp + 0x18], 0x100
je 0x403a18
inc dword [0x470db0]
test ecx, ecx
je 0x403a7c
test eax, eax
jne 0x403a7c
push edi
lea eax, [esp + 0x40]
push eax
call fcn.00407059
lea eax, [esp + 0x3c]
push eax
call fcn.004071f4
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00407059
lea eax, [esp + 0x3c]
push eax
push str._s.bin
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3c]
push 3
push 0x80000000
push eax
call fcn.00406e50
mov dword [0x40b014], eax
cmp eax, 0xffffffff
jne 0x403a7c
cmp dword [0x470db0], 0
je 0x403b7f
push 1
call fcn.004037d9
cmp dword [0x470dbc], 0
pop ecx
je 0x403b7f
cmp dword [0x41f150], 0
je 0x403af7
mov eax, dword [0x41f158]
add eax, 0xfffffffc
push 0
push eax
call fcn.00403372
push 4
lea eax, [esp + 0x18]
push eax
push dword [0x40b010]
call fcn.00406e7d
test eax, eax
je 0x403b7f
push 4
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0040735a
mov esi, eax
lea eax, [esp + 0x10]
push 4
push eax
push dword [0x40b010]
call fcn.00406e7d
test eax, eax
je 0x403b7f
cmp esi, dword [esp + 0x10]
jne 0x403b7f
push dword [esp + 0x2c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x470dbc]
mov esi, eax
add ecx, 0x24
push ecx
call fcn.0040338a
push dword [esp + 0x14]
push dword [esp + 0x30]
push esi
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
call fcn.004033a1
mov ecx, eax
mov edi, edx
mov eax, dword [esp + 0x2c]
cdq
cmp ecx, eax
jne 0x403b7f
cmp edi, edx
jne 0x403b7f
mov dword [0x470dc4], esi
mov eax, dword [esi]
push 8
mov dword [0x470dc0], eax
lea eax, [esi + 0x44]
pop ecx
lea eax, [eax - 8]
add dword [eax], esi
dec ecx
jne 0x403b4e
push 1
push ecx
push ecx
push ebp
call fcn.00403328
mov dword [esi + 0x3c], eax
lea eax, [esi + 4]
push 0x40
push eax
push 0x470de0
call fcn.00406bd7
xor eax, eax
jmp 0x403b84
push 1
call fcn.004037d9
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, 0x234
ret 4