Function at 0x4d4b20
Capabilities:
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x861f80
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 0xa
push ebx
push 0x2c
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x98], 1
call fcn.004b6310
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d4bb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x6c], 4
jb 0x4d5060
mov edx, dword [esp + 0x8c]
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp + 0x6c]
cmp eax, 4
jb 0x4d4ed1
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x68]
call fcn.004b3400
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x68]
mov byte [esp + 0x88], 2
call fcn.004b3400
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x68]
mov byte [esp + 0x88], 3
call fcn.004b3400
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x88], 4
call fcn.004b3400
mov esi, dword [esp + 0x20]
push esi
mov byte [esp + 0x88], 5
call fcn.00803cb3
mov ebp, dword [esp + 0x28]
add esp, 4
cmp dword [ebp - 0xc], ebx
je 0x4d4fc8
cmp dword [esi - 0xc], ebx
je 0x4d4fc8
mov edi, dword [esp + 0x18]
mov ecx, dword [edi - 0xc]
cmp ecx, ebx
je 0x4d4fcc
test cl, 1
jne 0x4d4fcc
lea edx, [eax + eax]
cmp edx, ecx
jne 0x4d4fcc
push ebp
call fcn.00803cd4
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
cmp edx, ebx
jg 0x4d4cb5
jl 0x4d4c9d
cmp eax, ebx
jae 0x4d4cb5
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
sub ecx, eax
sbb esi, edx
mov eax, ecx
mov edx, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
push ebx
lea ecx, [esp + 0x40]
push ecx
push edx
mov edx, dword [esp + 0x98]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esi - 0xc]
cmp ebp, dword [edi - 0xc]
jge 0x4d4d31
jmp 0x4d4ce0
lea edi, [ebp + 1]
cmp edi, ebx
jl 0x4d4f23
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4d4d0a
push edi
lea ecx, [esp + 0x20]
call fcn.004a8a90
mov esi, dword [esp + 0x1c]
mov eax, 0x46
mov word [esi + ebp*2], ax
cmp edi, dword [esi - 8]
jg 0x4d4f23
mov edx, dword [esp + 0x18]
mov dword [esi - 0xc], edi
xor ecx, ecx
mov word [esi + edi*2], cx
mov ebp, dword [esi - 0xc]
cmp ebp, dword [edx - 0xc]
jl 0x4d4ce0
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
lea eax, [esp + 0x54]
push eax
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x30], esp
mov edi, esp
push eax
mov byte [esp + 0x90], 7
mov dword [esp + 0x34], eax
call fcn.004a9b50
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.005c5e00
mov ebp, dword [esp + 0x20]
add esp, 8
lea ecx, [esp + 0x44]
push ecx
push ecx
add ebp, 0xfffffff0
mov dword [esp + 0x34], esp
mov edi, esp
push ebp
call fcn.004a9b50
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.005c5e00
add esp, 8
xor edi, edi
cmp dword [esp + 0x48], ebx
jbe 0x4d4e0b
mov ecx, dword [esp + 0x8c]
push ebx
lea edx, [esp + 0x34]
push edx
push 1
lea eax, [esp + 0x23]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x44]
test eax, eax
je 0x4d4f2d
cmp edi, dword [esp + 0x58]
jae 0x4d4f23
mov eax, dword [esp + 0x48]
cmp edi, eax
jae 0x4d4f23
mov edx, dword [esp + 0x54]
mov dl, byte [edx + edi]
and dl, byte [esp + 0x17]
cmp dl, byte [ecx + edi]
jne 0x4d4f2d
inc edi
cmp edi, eax
jb 0x4d4db3
jmp 0x4d4e0f
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
je 0x4d4e1c
push ecx
call fcn.00803053
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x4d4e2d
push eax
call fcn.00803053
add esp, 4
mov byte [esp + 0x84], 4
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4d4e4f
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov eax, dword [esp + 0x28]
mov byte [esp + 0x84], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d4e74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x84], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d4e9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x84], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d4ec4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x6c]
cmp eax, 4
jae 0x4d4be4
cmp eax, ebx
lea ecx, [esp + 0x64]
sete bl
call fcn.004afe70
mov eax, dword [esp + 0x90]
add eax, 0xfffffff0
mov dword [esp + 0x84], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d4f0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
push 0x80070057
call fcn.004a8210
cmp ecx, ebx
je 0x4d4f3a
push ecx
call fcn.00803053
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x4d4f4b
push eax
call fcn.00803053
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x84], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d4f73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [esp + 0x84], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d4f97
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x84], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d4fbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
jmp 0x4d503f
mov edi, dword [esp + 0x18]
lea eax, [edi - 0x10]
mov byte [esp + 0x84], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d4ff0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x84], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5018
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x84], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d503c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x84], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5060
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x64]
call fcn.004afe70
mov eax, dword [esp + 0x90]
add eax, 0xfffffff0
mov dword [esp + 0x84], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5097
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret