Function at 0x4e0890
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538847
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0xa0], ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 4], ebx
call fcn.00401980
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4e0906
push 0x80004005
call fcn.00401b40
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e091b
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4e091d
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x90], esi
push edi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00401ff0
xorps xmm0, xmm0
mov dword [ebp - 0xac], 0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x9c], xmm0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
push 0
push 0x80
push 3
push 0
push 1
push connect
push dword [ebp - 0xa0]
mov byte [ebp - 4], 3
mov dword [ebp - 0xb0], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4e0a2b
call fcn.004054a0
test eax, eax
je 0x4e0a33
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x80]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x4e09f1
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x84], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e09e9
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x4e09f1
mov ecx, edx
call dword [ebp - 0x84]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4e0fe3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e0a24
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x4e0fe3
call edx
jmp 0x4e0fe3
mov ebx, eax
mov dword [ebp - 0xbc], ebx
lea eax, [ebp - 0x88]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x8c], edi
cmp edi, 0xffffffff
jne 0x4e0ac0
call fcn.004054a0
test eax, eax
jns 0x4e0aba
je 0x4e0ab2
mov byte [ebp - 4], 1
or ebx, edi
mov ecx, dword [ebp - 0x80]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x4e0fa4
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x84], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e0aa5
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x4e0fa4
mov ecx, edx
call dword [ebp - 0x84]
jmp 0x4e0fa4
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
jmp 0x4e0ac6
mov edi, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x88]
push 0x10000
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x88], eax
call fcn.004115a0
mov edx, dword [ebp - 0xac]
or ebx, 0xffffffff
cmp dword [ebp - 0x88], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x7c], 0x67452301
mov dword [ebp - 0x78], 0xefcdab89
mov dword [ebp - 0x74], 0x98badcfe
mov dword [ebp - 0x70], 0x10325476
jb 0x4e0bb8
ja 0x4e0b26
test edi, edi
je 0x4e0bb8
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x98], ecx
nop dword [eax + eax]
mov eax, edi
sub eax, ecx
mov ecx, 0x10000
cmp eax, 0x10000
push 0
cmova eax, ecx
lea ecx, [ebp - 0xb0]
push ecx
push eax
push edx
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4e0b79
call fcn.004054a0
test eax, eax
jne 0x4e0f05
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0x7c]
add dword [ebp - 0x98], eax
mov edx, dword [ebp - 0xac]
adc dword [ebp - 0x18], 0
push eax
call fcn.004cf050
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0xac]
cmp eax, dword [ebp - 0x88]
jb 0x4e0b40
ja 0x4e0bb8
cmp ecx, edi
jb 0x4e0b40
xorps xmm0, xmm0
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x7c]
movq qword [ebp - 0x23], xmm0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1b], 0
mov word [ebp - 0x17], 0
mov byte [ebp - 0x15], 0
call fcn.004cf120
xor edi, edi
call fcn.00401980
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4e08fc
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e0c0d
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4e0c0f
call edx
add eax, 0x10
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 4
movzx eax, byte [ebp + edi - 0x24]
push eax
lea eax, [ebp - 0x88]
push 0x55ba38
push eax
call fcn.004023f0
mov esi, dword [ebp - 0x88]
lea ecx, [ebp - 0x90]
add esp, 0xc
push dword [esi - 0xc]
push esi
call fcn.00402320
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4e0c7f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e0c7d
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4e0c7f
call edx
inc edi
cmp edi, 0x10
jl 0x4e0be2
mov esi, dword [ebp - 0x90]
mov edi, dword [esi - 0xc]
test edi, edi
jns 0x4e0ca0
push 0x80070057
call fcn.00401b40
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4e0cc3
push edi
lea ecx, [ebp - 0x90]
call fcn.00402c70
mov esi, dword [ebp - 0x90]
lea eax, [edi + 1]
push eax
push esi
call fcn.004afd57
add esp, 8
cmp edi, dword [esi - 8]
jg 0x4e0c96
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov eax, dword [ebp - 0x80]
mov edi, dword [eax - 0xc]
test edi, edi
jns 0x4e0cf2
push 0x80070057
call fcn.00401b40
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x4e0d0f
push edi
lea ecx, [ebp - 0x80]
call fcn.00402c70
mov eax, dword [ebp - 0x80]
lea ecx, [edi + 1]
push ecx
push eax
call fcn.004afd57
mov eax, dword [ebp - 0x80]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x4e0c96
mov edx, dword [ebp - 0x84]
xor ecx, ecx
mov dword [eax - 0xc], edi
mov eax, dword [ebp - 0x80]
mov word [eax + edi*2], cx
test edx, edx
je 0x4e0dc3
mov edi, dword [edx]
lea ecx, [esi - 0x10]
sub edi, 0x10
cmp ecx, edi
je 0x4e0dc3
cmp dword [edi + 0xc], 0
jl 0x4e0db8
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4e0db8
call fcn.004021e0
mov dword [ebp - 0x88], eax
lea ecx, [edi + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4e0da5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e0da3
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x88]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4e0dc3
call edx
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x88]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4e0dc3
push dword [esi - 0xc]
mov ecx, edx
push esi
call fcn.00402d50
mov eax, dword [ebp - 0x80]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4e0ddb
push 0x80004005
call fcn.00401b40
mov edx, eax
mov ecx, esi
nop
mov di, word [ecx]
cmp di, word [edx]
jne 0x4e0e06
test di, di
je 0x4e0e02
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x4e0e06
add ecx, 4
add edx, 4
test di, di
jne 0x4e0de0
xor ecx, ecx
jmp 0x4e0e0b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
sete cl
test cl, cl
je 0x4e0e8f
mov eax, dword fs:[0x2c]
mov dword [ebp - 0xb4], 1
mov ecx, dword [eax]
mov eax, dword [0x59fee8]
cmp eax, dword [ecx + 4]
jle 0x4e0e70
push 0x59fee8
call fcn.0049af28
add esp, 4
cmp dword [0x59fee8], 0xffffffff
jne 0x4e0e70
mov byte [ebp - 4], 5
call fcn.004e7150
push 0x53eaa0
call fcn.0049b282
add esp, 4
mov byte [ebp - 4], 3
push 0x59fee8
call fcn.0049aee9
add esp, 4
push dword [ebp - 0xa0]
push 0x55bee8
push str.__s__File__s__Hash_OK
push 0x59feec
call fcn.004e76a0
add esp, 0x10
jmp 0x4e0f05
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx]
mov ecx, dword [0x59fee8]
cmp ecx, dword [edx + 4]
jle 0x4e0ee6
push 0x59fee8
call fcn.0049af28
add esp, 4
cmp dword [0x59fee8], 0xffffffff
jne 0x4e0ee3
mov byte [ebp - 4], 6
call fcn.004e7150
push 0x53eaa0
call fcn.0049b282
add esp, 4
mov byte [ebp - 4], 3
push 0x59fee8
call fcn.0049aee9
add esp, 4
mov eax, dword [ebp - 0x80]
push eax
push esi
push dword [ebp - 0xa0]
push str.CompareFileMd5
push str.__s__File__s__LocalHash__s__ServerHash__s__Fail
push 0x59feec
call fcn.004e76a0
add esp, 0x18
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x4e0f63
mov ecx, dword [ebp - 0xa4]
sub ecx, eax
cmp ecx, 0xffffffff
jbe 0x4e0f25
call fcn.004a4e3e
cmp ecx, 0x1000
jb 0x4e0f5a
test al, 0x1f
je 0x4e0f36
call fcn.004a4e3e
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x4e0f42
call fcn.004a4e3e
sub eax, ecx
cmp eax, 4
jae 0x4e0f4e
call fcn.004a4e3e
cmp eax, 0x23
jbe 0x4e0f58
call fcn.004a4e3e
mov eax, ecx
push eax
call fcn.0049aa1d
add esp, 4
mov byte [ebp - 4], 1
mov eax, ebx
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4e0f9e
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e0f9a
mov eax, dword [edx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x4e0fa4
mov ecx, edx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4e0fd2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e0fd0
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x4e0fd2
call edx
mov eax, dword [ebp - 0xbc]
test eax, eax
je 0x4e0fe3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret