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

Disassembly:
push 0xffffffffffffffff
push 0x5e73b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65f810]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
call fcn.004e27f0
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4e2b68
mov edx, dword [0x66dd30]
mov eax, dword [edx + 0xc]
mov ecx, 0x66dd30
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov dword [esp + 0x44], 0
call fcn.0047f5f0
lea ecx, [esp + 0x30]
call fcn.004e25f0
mov eax, dword [0x66dd30]
mov edx, dword [eax + 0xc]
mov ebx, 1
mov ecx, 0x66dd30
mov byte [esp + 0x38], bl
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x38], 2
call fcn.004e27f0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push ecx
add eax, 4
lea edx, [esp + 0x34]
push edx
mov ecx, eax
call fcn.004e24d0
test eax, eax
je 0x4e2a80
add eax, 8
push eax
lea ecx, [esp + 0x20]
call fcn.004ddaa0
call fcn.004e27f0
mov ebp, dword [esp + 0x1c]
mov ecx, dword [eax]
push ebp
push ecx
lea edx, [esp + 0x20]
push 0x5fd050
push edx
call fcn.0048d2c0
mov edi, dword [esp + 0x28]
add esp, 0x10
push 0
push 0x80
push 3
push 0
push ebx
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e2aff
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
mov dword [esp + 0x14], 0
test edi, edi
je 0x4e29eb
push 0
lea eax, [esp + 0x18]
push eax
push edi
lea ecx, [edi + 0xa]
push ecx
mov ecx, dword [esp + 0x54]
call fcn.0046aa10
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
push edx
call fcn.004e22c0
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
cmp dword [esp + 0x14], edi
mov byte [esp + 0x38], bl
sete al
or edx, 0xffffffff
mov esi, eax
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2a1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2a42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2a6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
lea eax, [esi - 0x10]
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2aa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2ac5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2ae9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
lea eax, [ebp - 0x10]
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2b1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2b44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2b68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push ecx
push edx
push eax
call fcn.004e27f0
mov ecx, eax
call fcn.004e2310
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret