Function at 0x4868c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f52b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd48
mov eax, dword [0x4d757c]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0xd3c], ebx
xor eax, eax
mov word [ebp - 0xd2c], 0
mov ecx, 0xff
lea edi, [ebp - 0xd2a]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
push eax
push ecx
lea edx, [ebp - 0xd2c]
push str._s_s
push edx
call dword [sym.imp.MSVCR71.dll_swprintf]
lea eax, [ebp - 0xd2c]
push 0x4ae6f8
push eax
call dword [sym.imp.MSVCR71.dll__wfopen]
mov esi, eax
add esp, 0x18
test esi, esi
mov dword [ebp - 0xd34], esi
je 0x486a02
call fcn.0047bb90
push 0x10
mov dword [ebp - 0xd30], eax
mov edx, dword [eax]
push str.876B9304_359C_42E2
mov ecx, eax
call dword [edx + 4]
xor eax, eax
mov byte [ebp - 0x92c], 0
mov ecx, 0xff
lea edi, [ebp - 0x92b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x52c], 0
mov ecx, 0xff
lea edi, [ebp - 0x52b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push 0x400
stosb byte es:[edi], al
lea eax, [ebp - 0x92c]
push 1
push eax
mov dword [ebp - 0xd38], 0x400
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
test ax, ax
jne 0x486a1f
push 0
call fcn.00450490
add esp, 4
test al, al
je 0x4869ec
push str.GetLgsInfoFromLocalFile__::read__fail__n
push 0x6e
push str..LocalCacheFile.cpp
push 0
call fcn.004504b0
add esp, 0xc
push eax
call fcn.004506e0
add esp, 8
lea ecx, [ebp - 0xd30]
push ecx
call fcn.0047b500
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0045a4fd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0xd30]
movzx eax, ax
add eax, 0xf
cdq
and edx, 0xf
add eax, edx
mov edx, dword [ecx]
lea edi, [ebp - 0xd38]
push edi
sar eax, 4
shl eax, 4
lea edi, [ebp - 0x52c]
push edi
push eax
lea eax, [ebp - 0x92c]
push eax
push 1
mov dword [ebp + 0xc], 0
call dword [edx + 0xc]
test eax, eax
je 0x486bd1
push fcn.00458010
push 0xa
push 0x1c
lea ecx, [ebp - 0x12c]
xor esi, esi
push ecx
mov dword [ebp + 8], esi
call fcn.00401190
movzx edx, word [ebp - 0xd38]
push esi
push edx
mov eax, edi
push eax
lea ecx, [ebp - 0xd4c]
mov dword [ebp - 4], esi
call fcn.00455250
lea ecx, [ebx + 0x28]
push ecx
lea ecx, [ebp - 0xd4c]
mov byte [ebp - 4], 1
call fcn.004552e0
cmp dword [ebp + 0x10], esi
lea ecx, [ebp - 0xd4c]
jne 0x486abb
lea edx, [ebx + 0x20]
push edx
jmp 0x486ace
lea eax, [ebp - 0xd54]
mov dword [ebp - 0xd54], esi
mov dword [ebp - 0xd50], esi
push eax
call fcn.00455390
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0xd4c]
call fcn.00455340
cmp esi, dword [ebp + 8]
jge 0x486b02
mov eax, esi
imul eax, eax, 0x1c
lea edx, [ebp - 0xd4c]
push edx
lea ecx, [ebp + eax - 0x12c]
call fcn.00458040
inc esi
jmp 0x486ae2
lea ecx, [ebp - 0xd4c]
mov dword [ebp + 0xc], 1
mov byte [ebp - 4], 0
call fcn.00426080
jmp 0x486b2d
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], 0xffffffff
je 0x486b6f
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x486b4d
push eax
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
mov eax, dword [ebx + 0x14]
cmp eax, esi
je 0x486b66
push eax
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], esi
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, esi
jle 0x486bcb
lea esi, [ebp - 0x122]
mov edi, edi
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486b85
sub eax, edx
mov dword [ebp + 0x10], eax
je 0x486bc0
cmp word [esi + 0x10], 0
je 0x486bc0
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
je 0x486bc0
mov al, byte [esi - 1]
test al, al
jne 0x486bb4
lea ecx, [esi - 0xa]
push ecx
mov ecx, ebx
jmp 0x486bbb
lea edx, [esi - 0xa]
push edx
lea ecx, [ebx + 0x10]
call fcn.00486830
mov eax, dword [ebp + 8]
inc edi
add esi, 0x1c
cmp edi, eax
jl 0x486b80
mov esi, dword [ebp - 0xd34]
lea eax, [ebp - 0xd30]
push eax
call fcn.0047b500
push esi
mov dword [ebp - 0xd30], 0
call dword [sym.imp.MSVCR71.dll_fclose]
mov eax, dword [ebp + 0xc]
add esp, 8
jmp 0x486a04