Function at 0x418610
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446616
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x45a400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov esi, edx
mov edx, dword [ebp + 0xc]
push edx
mov dword [ebp - 0xd8], ecx
push eax
mov ecx, edi
mov dword [ebp - 0xd4], eax
call fcn.00417920
xor ebx, ebx
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x41867c
mov eax, dword [ebp - 0xd4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
sub edi, dword [ebp + 0xc]
jmp 0x41868a
mov edi, dword [edi + 0x10]
mov ecx, eax
sub ecx, dword [ebp + 0xc]
add eax, edi
mov dword [esi], eax
mov edi, ecx
cmp byte [ebp + 0x14], bl
je 0x4186f1
cmp dword [esi], 0xffffffff
je 0x418753
push 0x28
mov esi, 0xf
push str.Invalid_wizard_executable_file_detected_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0040366e
push 0xffffffffffffffff
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x70], vtable.CLightInstallerException.0
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x6c], bl
call fcn.00403978
push 0x455268
lea edx, [ebp - 0x70]
push edx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], bl
mov dword [ebp - 0x34], ebx
call fcn.0042a64b
cmp dword [esi], 0xffffffff
jne 0x418753
push 0x28
mov esi, 0xf
push str.Invalid_wizard_executable_file_detected_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0040366e
push 0xffffffffffffffff
mov dword [ebp - 4], 1
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x70], vtable.CLightInstallerException.0
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x6c], bl
call fcn.00403978
push 0x455268
lea ecx, [ebp - 0x70]
push ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], bl
mov dword [ebp - 0x34], ebx
call fcn.0042a64b
push edi
call fcn.0042824d
mov esi, eax
add esp, 4
mov dword [ebp - 0xdc], esi
mov dword [ebp - 4], 2
cmp esi, ebx
jne 0x4187f4
push 0xd
mov esi, 0xf
push str.Out_of_memory
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x8c], bl
call fcn.0040366e
push 0xffffffffffffffff
mov byte [ebp - 4], 3
push ebx
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xd0], vtable.CLightInstallerException.0
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xbc], ebx
mov byte [ebp - 0xcc], bl
call fcn.00403978
push 0x455268
lea eax, [ebp - 0xd0]
push eax
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa0], ebx
mov byte [ebp - 0xb0], bl
mov dword [ebp - 0x94], ebx
call fcn.0042a64b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xd4]
push esi
call fcn.00418840
mov ecx, dword [ebp - 0xd8]
push ecx
push edi
mov ecx, esi
call fcn.0041ba30
push esi
call fcn.00428258
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428263
mov esp, ebp
pop ebp
ret 0x10