Function at 0x10020c90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002c06b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd48
mov eax, dword [0x1003b270]
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 0x10034f0c
push edx
call dword [sym.imp.MSVCR71.dll_swprintf]
lea eax, [ebp - 0xd2c]
push 0x1002d77c
push eax
call dword [sym.imp.MSVCR71.dll__wfopen]
mov esi, eax
add esp, 0x18
test esi, esi
mov dword [ebp - 0xd34], esi
je 0x10020dd2
call fcn.10016550
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 0x10020def
push 0
call fcn.100017c0
add esp, 4
test al, al
je 0x10020dbc
push str.GetLgsInfoFromLocalFile__::read__fail__n
push 0x6e
push str..LocalCacheFile.cpp
push 0
call fcn.10001810
add esp, 0xc
push eax
call fcn.10001a30
add esp, 8
lea ecx, [ebp - 0xd30]
push ecx
call fcn.10015ec0
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.1001590b
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 0x10020fa1
push fcn.10008f40
push 0xa
push 0x1c
lea ecx, [ebp - 0x12c]
xor esi, esi
push ecx
mov dword [ebp + 8], esi
call fcn.10001b10
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.10008a60
lea ecx, [ebx + 0x28]
push ecx
lea ecx, [ebp - 0xd4c]
mov byte [ebp - 4], 1
call fcn.10008b30
cmp dword [ebp + 0x10], esi
lea ecx, [ebp - 0xd4c]
jne 0x10020e8b
lea edx, [ebx + 0x20]
push edx
jmp 0x10020e9e
lea eax, [ebp - 0xd54]
mov dword [ebp - 0xd54], esi
mov dword [ebp - 0xd50], esi
push eax
call fcn.10008b80
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0xd4c]
call fcn.10008a90
cmp esi, dword [ebp + 8]
jge 0x10020ed2
mov eax, esi
imul eax, eax, 0x1c
lea edx, [ebp - 0xd4c]
push edx
lea ecx, [ebp + eax - 0x12c]
call fcn.10008f70
inc esi
jmp 0x10020eb2
lea ecx, [ebp - 0xd4c]
mov dword [ebp + 0xc], 1
mov byte [ebp - 4], 0
call fcn.1000df20
jmp 0x10020efd
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], 0xffffffff
je 0x10020f3f
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x10020f1d
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 0x10020f36
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 0x10020f9b
lea esi, [ebp - 0x122]
mov edi, edi
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10020f55
sub eax, edx
mov dword [ebp + 0x10], eax
je 0x10020f90
cmp word [esi + 0x10], 0
je 0x10020f90
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
je 0x10020f90
mov al, byte [esi - 1]
test al, al
jne 0x10020f84
lea ecx, [esi - 0xa]
push ecx
mov ecx, ebx
jmp 0x10020f8b
lea edx, [esi - 0xa]
push edx
lea ecx, [ebx + 0x10]
call fcn.10020c00
mov eax, dword [ebp + 8]
inc edi
add esi, 0x1c
cmp edi, eax
jl 0x10020f50
mov esi, dword [ebp - 0xd34]
lea eax, [ebp - 0xd30]
push eax
call fcn.10015ec0
push esi
mov dword [ebp - 0xd30], 0
call dword [sym.imp.MSVCR71.dll_fclose]
mov eax, dword [ebp + 0xc]
add esp, 8
jmp 0x10020dd4