Function at 0x10013330
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2054
call fcn.10001480
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x78], 0x1fe0
lea eax, [esp + 0x7c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x74], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x70], 0x100541c4
mov eax, dword [edi + 0x12c4]
mov dword [esp + 0x24], 0x10059da0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
lea eax, [eax*2 + 0x20]
mov word [esp + 0x30], 0x1ff
push eax
call fcn.10004970
mov ebp, dword [esp + 0x24]
test eax, eax
je 0x100133d3
mov eax, dword [edi + 0x12c4]
xor edx, edx
mov ecx, dword [edi + 0x12c0]
add eax, eax
push eax
push ecx
lea edi, [eax + ebp]
mov word [edi], dx
push ebp
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, 7
xor eax, eax
mov esi, str.urlexclist.dat
mov word [edi + 0x1e], ax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [esp + 0x20]
mov eax, dword [edi + 0x12f8]
lea ebx, [edi + 0x1210]
or eax, dword [edi + 0x12fc]
mov byte [esp + 0x17], 1
jne 0x100133f1
mov byte [esp + 0x17], 0
push 0x100500bc
push ebp
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebp, eax
add esp, 8
mov dword [esp + 0x34], ebp
test ebp, ebp
je 0x100135fb
lea eax, [esp + 0x38]
push eax
push ebp
call dword [sym.imp.msvcrt.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.msvcrt.dll__fstat64]
add esp, 8
test eax, eax
js 0x100135fb
mov eax, dword [edi + 0x12f8]
cmp eax, dword [esp + 0x60]
jne 0x1001344b
mov eax, dword [edi + 0x12fc]
cmp eax, dword [esp + 0x64]
je 0x1001362b
cmp dword [esp + 0x54], 0
jg 0x10013602
mov eax, dword [esp + 0x50]
jl 0x10013467
cmp eax, 0xc800
ja 0x10013602
lea esi, [eax + 8]
mov eax, dword [esp + 0x78]
cmp esi, eax
jbe 0x1001349c
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x70]
push 0
call dword [eax + 4]
push esi
call dword [sym.imp.msvcrt.dll_malloc]
mov ecx, eax
add esp, 4
xor eax, eax
mov dword [esp + 0x74], ecx
test ecx, ecx
cmovne eax, esi
mov dword [esp + 0x78], eax
jmp 0x100134a0
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x10013602
push ebp
dec eax
push eax
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fread]
mov esi, eax
add esp, 0x10
cmp esi, 2
jl 0x10013602
mov ecx, dword [ebx]
lea eax, [esi + 1]
mov dword [ebx + 4], 0
mov byte [ecx], 0
cmp dword [ebx + 8], eax
jae 0x100134de
push eax
mov ecx, ebx
call fcn.10003580
mov ecx, dword [esp + 0x74]
movzx edx, word [ecx]
lea eax, [ecx + esi]
mov dword [esp + 0x1c], eax
mov ebp, edx
mov dword [esp + 0x18], edx
cmp edx, 0xffff
jne 0x10013501
mov ebp, dword [ecx + 2]
mov dword [esp + 0x18], ebp
xor eax, eax
lea esi, [ecx + 2]
cmp edx, 0xffff
sete al
lea esi, [esi + eax*4]
mov eax, dword [esp + 0x1c]
cmp esi, eax
jae 0x100135dd
mov edi, edi
movzx edi, byte [esi]
inc esi
cmp edi, 0xff
jne 0x1001353f
movzx edi, word [esi]
add esi, 2
cmp edi, 0xffff
jne 0x1001353f
mov edi, dword [esi]
add esi, 4
lea ebp, [edi + esi]
cmp ebp, eax
ja 0x100135d1
test edi, edi
je 0x100135bb
mov eax, dword [ebx + 4]
test eax, eax
je 0x1001357f
add eax, 2
cmp dword [ebx + 8], eax
jae 0x10013569
push eax
mov ecx, ebx
call fcn.10003580
test eax, eax
je 0x1001357f
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov byte [ecx + eax], 0x7c
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
inc ecx
mov dword [ebx + 4], ecx
mov byte [ecx + eax], 0
test edi, edi
jle 0x100135b5
mov eax, dword [ebx + 4]
inc eax
add eax, edi
cmp dword [ebx + 8], eax
jae 0x1001359a
push eax
mov ecx, ebx
call fcn.10003580
test eax, eax
je 0x100135b5
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
add ecx, eax
add eax, edi
push edi
push esi
mov dword [ebx + 4], eax
push ecx
mov byte [ecx + edi], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov esi, ebp
mov ebp, dword [esp + 0x18]
add esi, 4
dec ebp
mov dword [esp + 0x18], ebp
cmp esi, eax
jb 0x10013520
jmp 0x100135d5
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x20]
test ebp, ebp
jne 0x10013602
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov ebp, dword [esp + 0x34]
mov dword [edi + 0x12f8], eax
mov dword [edi + 0x12fc], edx
jmp 0x10013627
cmp byte [esp + 0x17], 0
je 0x10013623
mov ecx, ebx
call fcn.10003f30
mov ecx, dword [esp + 0x74]
xor eax, eax
mov ebp, dword [esp + 0x34]
xor edx, edx
mov dword [edi + 0x12f8], eax
mov dword [edi + 0x12fc], edx
jmp 0x10013627
mov ecx, dword [esp + 0x74]
test ebp, ebp
je 0x10013639
push ebp
call dword [sym.imp.msvcrt.dll_fclose]
mov ecx, dword [esp + 0x78]
add esp, 4
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.msvcrt.dll_free]
cmp eax, 0x10059da0
je 0x10013657
add eax, 0xfffffffc
push eax
call esi
mov ecx, dword [esp + 0x78]
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 0x10053070
lea edx, [esp + 0x7c]
cmp ecx, edx
cmove ecx, eax
mov dword [esp + 0x74], ecx
test ecx, ecx
je 0x10013678
push ecx
call esi
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x2054
ret