Function at 0x42dae0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535183
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x58ab78]
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 + 0xc]
mov ecx, eax
mov esi, dword [ebp + 8]
push 0
push 0x5466b8
mov dword [ebp - 0x70], eax
call fcn.004240c0
xor edi, edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [esi]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
jne 0x42db63
call fcn.0042ba40
mov esi, eax
test esi, esi
jns 0x42db68
jmp 0x42ddb9
mov edi, eax
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x5c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x60], edi
cmp edi, 0xffffffff
jne 0x42db8f
call fcn.0042ba40
mov esi, eax
test esi, esi
js 0x42ddb9
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x88], 0
mov byte [ebp - 4], 1
cmp edi, 0x1400000
jbe 0x42dbb4
mov edi, 0x1400000
push 4
push 2
push 0
push 0
push edi
push dword [ebp - 0x58]
lea ecx, [ebp - 0x90]
call fcn.0042ddf0
mov esi, eax
test esi, esi
js 0x42dd7b
mov eax, dword [str.___Install__UTF_8_]
xor esi, esi
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov eax, dword [0x547c40]
mov dword [ebp - 0x20], eax
mov eax, dword [0x547c44]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x547c48]
mov dword [ebp - 0x18], eax
mov ax, word [0x547c4c]
mov word [ebp - 0x14], ax
mov al, byte [0x547c4e]
mov byte [ebp - 0x12], al
mov eax, dword [str.___InstallEnd__]
mov dword [ebp - 0x34], eax
mov eax, dword [0x547c54]
mov dword [ebp - 0x30], eax
mov eax, dword [0x547c58]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x547c5c]
mov dword [ebp - 0x28], eax
lea eax, [edi - 0x14]
mov byte [ebp - 0x34], 0x3b
mov byte [ebp - 0x24], 0x3b
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], esi
test eax, eax
je 0x42dd76
mov edi, dword [ebp - 0x90]
lea ebx, [ebx]
mov ecx, edi
test esi, esi
jne 0x42dc86
lea edx, [ebp - 0x24]
mov esi, 0xe
mov edi, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x42dcb5
add ecx, 4
add edx, 4
sub esi, 4
jae 0x42dc60
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x42dcb5
add ebx, 0x12
add edi, 0x12
mov esi, edi
mov dword [ebp - 0x50], esi
jmp 0x42dcb8
lea edx, [ebp - 0x34]
mov esi, 0xb
mov edi, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x42dcb5
add ecx, 4
add edx, 4
sub esi, 4
jae 0x42dc90
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x42dcb5
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
je 0x42dd64
mov esi, dword [ebp - 0x50]
inc ebx
inc edi
cmp ebx, dword [ebp - 0x5c]
jb 0x42dc50
xor edi, edi
test esi, esi
je 0x42dd76
test edi, edi
je 0x42dd76
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
call fcn.0042ce90
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
sub eax, ecx
push eax
push ecx
push edi
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 3
push esi
push eax
call fcn.0045d6a0
mov eax, dword [ebp - 0x4c]
add esp, 0x18
cmp dword [ebp - 0x38], 8
jae 0x42dd1a
lea eax, [ebp - 0x4c]
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x70]
push eax
call fcn.004240c0
mov eax, dword [ebp - 0x6c]
xor esi, esi
test eax, eax
je 0x42dd41
push eax
call fcn.0047d4a0
add esp, 4
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
cmp dword [ebp - 0x38], 8
jb 0x42dd52
push dword [ebp - 0x4c]
call fcn.0047d4a0
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], ax
jmp 0x42dd7b
mov edi, dword [ebp - 0x90]
mov esi, dword [ebp - 0x50]
sub edi, esi
add edi, ebx
jmp 0x42dcc1
mov esi, 0x8007000d
mov eax, dword [ebp - 0x90]
xor edi, edi
test eax, eax
je 0x42dd99
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x42dd99
call fcn.0042ba40
mov edi, eax
mov ecx, dword [ebp - 0x88]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ecx, ecx
je 0x42ddb9
push ecx
call ebx
test eax, eax
jne 0x42ddb9
test edi, edi
js 0x42ddb9
call fcn.0042ba40
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x42ddc3
push eax
call ebx
mov eax, esi
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.0049f3ce
mov esp, ebp
pop ebp
ret