Function at 0x48207d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a753a
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 [0x54299c]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0xffffffff
jne 0x482114
or eax, 0xffffffff
jmp 0x4823ae
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 0x482157
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x4823ae
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 0x482191
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 0x4823ae
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0042a230
add esp, 4
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x4821c2
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 0x4823ae
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.00416da0
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x5c]
add ecx, 4
call fcn.004819b0
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
push edx
lea ecx, [ebp - 0x50]
call fcn.00441530
mov byte [ebp - 0x6c], al
mov eax, dword [ebp - 0x6c]
and eax, 0xff
test eax, eax
je 0x48224a
lea ecx, [ebp - 0x50]
call fcn.004845b0
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 0x48223a
jmp 0x48224a
push 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00416820
jmp 0x4821e6
lea ecx, [ebp - 0x50]
call fcn.004845b0
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.004845b0
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.004845b0
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 0x4822cf
cmp dword [ebp - 0x40], 0
jl 0x4822cd
cmp dword [ebp - 0x40], 8
jae 0x4822cd
push 5
mov eax, dword [ebp - 0x40]
imul eax, eax, 5
add eax, 0x539eac
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x4822f5
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 0x4823ae
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.004845b0
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 0x4823ae
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4