Function at 0x4869fd
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad5ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x70
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 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 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [0x54b4dc]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0xffffffff
jne 0x486a94
or eax, 0xffffffff
jmp 0x486d2e
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0x8000004
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x486ad7
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x486d2e
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x486b11
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x486d2e
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0042e5a0
add esp, 4
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x486b42
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x486d2e
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], 0x10
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x5c]
add ecx, 4
call fcn.00416c30
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x5c]
add ecx, 4
call fcn.00416d80
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
push edx
lea ecx, [ebp - 0x50]
call fcn.0043b3a0
mov byte [ebp - 0x6c], al
mov eax, dword [ebp - 0x6c]
and eax, 0xff
test eax, eax
je 0x486bca
lea ecx, [ebp - 0x50]
call fcn.00417fc0
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx]
add eax, 0x18
push eax
call dword [sym.imp.ntdll.dll__stricmp]
add esp, 8
test eax, eax
jne 0x486bba
jmp 0x486bca
push 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x50]
call fcn.0043b370
jmp 0x486b66
lea ecx, [ebp - 0x50]
call fcn.00417fc0
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x50]
call fcn.00417fc0
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
mov eax, dword [edx]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x50]
call fcn.00417fc0
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x3c]
add eax, dword [edx + 0x14]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x4c]
push ecx
push 4
push 5
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x486c4f
cmp dword [ebp - 0x40], 0
jl 0x486c4d
cmp dword [ebp - 0x40], 8
jae 0x486c4d
push 5
mov eax, dword [ebp - 0x40]
imul eax, eax, 5
add eax, 0x54291c
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x486c75
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
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 0x486d2e
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x4c]
push eax
push 5
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 0x50]
call fcn.00417fc0
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x48], ecx
lea edx, [ebp - 0x4c]
push edx
push 4
push 0x28
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x44], eax
push 0x28
push 0
mov ecx, dword [ebp - 0x48]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x4c]
push edx
push 4
push 0x28
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x3c]
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 0x486d2e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4