Function at 0x4a1f80
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4f6168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, dword [esp + 0x20]
push edi
lea eax, [esp + 8]
push esi
push eax
call fcn.004a1eb0
add esp, 8
mov edi, dword [esp + 8]
mov eax, dword [edi - 0xc]
test eax, eax
mov dword [esp + 0x1c], 0
jge 0x4a1fc9
push 0x80070057
call fcn.004021ad
cmp word [edi], 0x35
je 0x4a2005
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a1ff1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push ebx
push 0
push 0x80
push 3
push 0
push 2
push 0x10000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
or esi, 0xffffffff
cmp ebx, esi
jne 0x4a2059
lea eax, [edi - 0x10]
mov dword [esp + 0x20], esi
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a2045
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push ebp
push 0
push 0
push 0
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x4a20aa
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov dword [esp + 0x24], esi
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a2095
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push ebp
mov dword [0x54fec0], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x4a20e1
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push ebx
call esi
lea eax, [edi - 0x10]
jmp 0x4a22d5
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov dword [0x54feb8], esi
mov dword [0x54fec4], esi
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [0x54fea8], eax
mov ecx, dword [eax + 0x80]
mov dword [0x54feb4], ecx
mov eax, dword [eax + 0x84]
add ecx, esi
mov dword [0x54fecc], eax
mov dword [0x54feb4], ecx
mov dword [0x54fec8], ecx
je 0x4a2150
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4a2150
mov ecx, dword [0x54feb8]
add eax, ecx
push str.ntoskrnl.exe
push eax
call edi
test eax, eax
je 0x4a2150
mov ecx, dword [0x54fec8]
add ecx, 0x14
mov dword [0x54fec8], ecx
jne 0x4a2124
mov edx, dword [0x54fec8]
mov ecx, dword [edx + 0x10]
add ecx, dword [0x54feb8]
mov dword [0x54febc], ecx
je 0x4a219a
mov eax, dword [ecx]
test eax, eax
je 0x4a219a
mov ecx, dword [0x54feb8]
add eax, ecx
mov dword [0x54feb0], eax
add eax, 2
push str.KeInitializeSpinLock
push eax
call edi
test eax, eax
mov ecx, dword [0x54febc]
je 0x4a219a
add ecx, 4
mov dword [0x54febc], ecx
jne 0x4a2167
mov edx, dword [0x54edf4]
mov eax, dword [0x54fec0]
push edx
push 0x516acc
push eax
push esi
mov dword [0x54feac], ecx
call fcn.004a0ba0
mov ecx, dword [0x54edf8]
mov edi, eax
push ecx
mov edx, edi
push 0x516ad8
sub edx, esi
push edx
push edi
call fcn.004a0ba0
add esp, 0x20
test edi, edi
je 0x4a22bb
test eax, eax
je 0x4a22bb
mov ecx, dword [esp + 0x30]
add eax, 8
test ecx, ecx
jne 0x4a2240
movzx edi, word [eax]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push ebx
call esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a222b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov byte [eax], cl
inc eax
shr ecx, 8
mov byte [eax], cl
mov edx, dword [0x54fec0]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
push esi
call dword [sym.imp.imagehlp.dll_CheckSumMappedFile]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x54fea8]
push esi
mov dword [ecx + 0x58], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push ebx
call esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a22a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push ebx
call esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a22f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
pop ebp
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret