Function at 0x506f80
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f2bd
mov eax, dword fs:[0]
push eax
mov eax, 0x1a48
call fcn.00547480
mov eax, dword [0x661850]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a54], ecx
push str.Mon_Aug_10_12:09:09_2015
push 0x4cc
push str.CClientSocket::SendNoticeOK
push str.Mir3ClientSocket.cpp
lea ecx, [ebp - 0x11d]
call fcn.004024e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x22c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov byte [ebp - 0x11c], 0
push 0x103
push 0
lea ecx, [ebp - 0x11b]
push ecx
call fcn.005454d0
add esp, 0xc
lea edx, [ebp - 0x22c]
push edx
push 0x104
lea eax, [ebp - 0x11c]
push eax
call fcn.005477d6
add esp, 0xc
push 0x57a3a0
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00545a90
add esp, 4
lea edx, [ebp + eax - 0x11c]
push edx
call fcn.00545760
add esp, 8
push str.friend.lst
lea eax, [ebp - 0x11c]
push eax
call fcn.00545760
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1a30], eax
cmp dword [ebp - 0x1a30], 0xffffffff
je 0x507147
push 0
mov edx, dword [ebp - 0x1a30]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1a34], eax
mov eax, dword [ebp - 0x1a34]
push eax
call fcn.00542ae0
add esp, 4
mov dword [ebp - 0x1a4c], eax
mov ecx, dword [ebp - 0x1a4c]
mov dword [ebp - 0x1a40], ecx
mov edx, dword [ebp - 0x1a34]
push edx
push 0
mov eax, dword [ebp - 0x1a40]
push eax
call fcn.005454d0
add esp, 0xc
push 0
lea ecx, [ebp - 0x1a38]
push ecx
mov edx, dword [ebp - 0x1a34]
push edx
mov eax, dword [ebp - 0x1a40]
push eax
mov ecx, dword [ebp - 0x1a30]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1a3c], eax
mov edx, dword [ebp - 0x1a30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1a34]
push eax
mov ecx, dword [ebp - 0x1a40]
push ecx
mov ecx, 0x6acf18
call fcn.00432020
mov edx, dword [ebp - 0x1a40]
mov dword [ebp - 0x1a50], edx
mov eax, dword [ebp - 0x1a50]
push eax
call fcn.00544d5d
add esp, 4
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x1a2c], 0
push 0x17ff
push 0
lea ecx, [ebp - 0x1a2b]
push ecx
call fcn.005454d0
add esp, 0xc
mov ecx, 0x6c8e9c
call fcn.004505e0
test eax, eax
je 0x507231
mov ecx, 0x6c8e9c
call fcn.00466bb0
mov dword [ebp - 0x1a44], 0
mov dword [ebp - 0x1a48], 0
jmp 0x5071ac
mov edx, dword [ebp - 0x1a48]
add edx, 1
mov dword [ebp - 0x1a48], edx
mov ecx, 0x6c8e9c
call fcn.004505e0
cmp dword [ebp - 0x1a48], eax
jge 0x507231
mov ecx, 0x6c8e9c
call fcn.0050cea0
mov dword [ebp - 0x1a44], eax
mov eax, dword [ebp - 0x1a44]
add eax, 4
push eax
call fcn.00545a90
add esp, 4
test eax, eax
je 0x507222
mov ecx, dword [ebp - 0x1a44]
add ecx, 4
push ecx
lea edx, [ebp - 0x1a2c]
push edx
call fcn.00545760
add esp, 8
push 0x5778a8
lea eax, [ebp - 0x1a2c]
push eax
call fcn.00545760
add esp, 8
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x32
jl 0x507222
jmp 0x507231
mov ecx, 0x6c8e9c
call fcn.0046d040
jmp 0x50719d
cmp dword [ebp - 0x10], 0
jle 0x507279
movzx edx, word [ebp - 0x10]
push edx
push 0
push 0
push 0
push 0x3fa
mov eax, dword [ebp - 0x1a54]
add eax, 0xe110
push eax
call fcn.00509d80
lea ecx, [ebp - 0x1a2c]
push ecx
mov edx, dword [ebp - 0x1a54]
add edx, 0xe110
push edx
mov ecx, dword [ebp - 0x1a54]
call fcn.005063f0
jmp 0x5072b1
push 0
push 0
push 0
push 0
push 0x3fa
mov eax, dword [ebp - 0x1a54]
add eax, 0xe110
push eax
call fcn.00509d80
push 0
mov ecx, dword [ebp - 0x1a54]
add ecx, 0xe110
push ecx
mov ecx, dword [ebp - 0x1a54]
call fcn.005063f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11d]
call fcn.00402620
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054514c
mov esp, ebp
pop ebp
ret