Function at 0x4e0af0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5fc90e
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov eax, dword [esp + 0x17c]
mov dword [esp + 0x20], eax
xor esi, esi
mov dword [esp + 0x170], esi
mov dword [esp + 0x1c], esi
push esi
push 0x80
push 3
push esi
push 3
mov byte [esp + 0x184], 1
mov edi, dword [esp + 0x18c]
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4e0ba7
call fcn.0040f010
mov ebp, eax
cmp ebp, esi
jge 0x4e0bad
lea eax, [edi - 0x10]
mov dword [esp + 0x170], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0ba0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
jmp 0x4e0e44
mov esi, eax
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x24], ebx
jne 0x4e0bd1
call fcn.0040f010
test eax, eax
jl 0x4e0bd6
mov ebx, dword [esp + 0x24]
cmp ebx, 0x4c
jae 0x4e0c01
test esi, esi
je 0x4e0be1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov dword [esp + 0x170], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4e0e33
push ebx
call fcn.005d1ef5
add esp, 4
push ebx
mov ebp, eax
push 0
push ebp
call fcn.005da970
add esp, 0xc
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebp
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4e0c78
call fcn.0040f010
mov ebx, eax
test ebx, ebx
jge 0x4e0c85
test esi, esi
je 0x4e0c4a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov dword [esp + 0x170], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e0c71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x4e0e44
cmp dword [esp + 0x18], ebx
je 0x4e0c89
mov ebx, 0x80070026
jmp 0x4e0c3f
mov ebx, dword [esp + 0x24]
cmp dword [ebp], 0x51505545
jne 0x4e0e0d
cmp word [ebp + 4], 1
jne 0x4e0e0d
mov esi, 0x4c
cmp ebx, esi
jbe 0x4e0de6
mov edi, edi
movzx eax, byte [esi + ebp + 0x20]
add eax, 0x21
cmp dword [esi + ebp], 0x55454e47
jne 0x4e0de6
add eax, esi
cmp eax, ebx
mov dword [esp + 0x18], eax
ja 0x4e0de6
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x58], eax
mov byte [esp + 0x170], 2
mov eax, dword [esi + ebp + 0xc]
mov ecx, dword [esi + ebp]
mov edx, dword [esi + ebp + 4]
push 0x103
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + ebp + 8]
mov dword [esp + 0x3c], edx
mov dl, byte [esi + ebp + 0x20]
lea eax, [esp + 0x61]
push 0
push eax
mov dword [esp + 0x48], ecx
mov byte [esp + 0x60], dl
mov byte [esp + 0x68], 0
call fcn.005da970
movzx ecx, byte [esi + ebp + 0x20]
add esp, 0xc
push ecx
lea edx, [esi + ebp + 0x21]
push edx
lea eax, [esp + 0x64]
push eax
call fcn.005d6c20
lea eax, [esp + 0x68]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4e0d51
sub eax, ecx
lea ecx, [esp + 0x5c]
mov edi, eax
push ecx
lea eax, [esp + 0x5c]
call fcn.00415c70
mov esi, dword [esp + 0x20]
mov edi, dword [esi + 4]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x5c]
call fcn.004e20e0
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x4e0d8f
cmp eax, dword [esp + 0x20]
je 0x4e0d94
call fcn.005d29f1
cmp dword [esi + 4], edi
jne 0x4e0db2
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x58]
push eax
call fcn.004e1bd0
mov esi, eax
lea eax, [esp + 0x30]
call fcn.004e0a40
mov esi, dword [esp + 0x18]
mov byte [esp + 0x170], 1
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0dde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
jb 0x4e0cb0
push ebp
call fcn.005d28c2
add esp, 4
lea esi, [esp + 0x1c]
call fcn.0044b230
call fcn.0044b230
lea ecx, [esp + 0x178]
call fcn.00403870
xor eax, eax
jmp 0x4e0e44
test esi, esi
je 0x4e0e18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov dword [esp + 0x170], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0e3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x8007000b
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.005d28b3
add esp, 0x160
ret 8