Function at 0x4896e0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac0a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0
push 0x8000000
push 3
push 0
push 1
push closesocket
mov eax, dword [ebp + 0x10]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x489774
or eax, 0xffffffff
jmp 0x489933
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0x8000002
push 0
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4897b7
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x489933
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4897ee
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x489933
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
lea ecx, [eax + edx + 9]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], edx
jmp 0x489830
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp - 0x34]
jae 0x489904
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0xe9
jne 0x4898ff
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x38]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx]
lea eax, [eax + edx + 5]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x28]
push edx
push 0x539b63
mov eax, dword [ebp - 0x1c]
push eax
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4898ff
cmp dword [ebp + 8], 0
je 0x4898ff
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], 1
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x38]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp + 0xc]
push ecx
push 0x78
mov edx, dword [ebp + 0x10]
add edx, 0x18
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x489933
jmp 0x489827
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48992a
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc