Function at 0x100045b5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov al, byte [0x10008acc]
push esi
push edi
mov byte [ebp - 0x210], al
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20f]
xor esi, esi
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x100045ee
xor eax, eax
jmp 0x100047f2
push ebx
lea eax, [ebp - 0x210]
push 0x100089b8
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x210]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x100047ee
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea edi, [esi + 1]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x100047cd
push edi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100047cd
cmp dword [ebp - 8], esi
jne 0x100047cd
cmp dword [ebp + 8], 0
je 0x1000469b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp + 8], 0
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
push str._URLSERVER_INCLUDE_
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x100046c1
push edi
push 0x10008c38
push ebx
call fcn.10004432
add esp, 0xc
push str._URLSERVER_EXCLUDE_
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x100046de
push edi
push 0x10008c28
push ebx
call fcn.10004432
add esp, 0xc
push str._URLCUSTOM_INCLUDE_
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x100046fb
push edi
push 0x10008c98
push ebx
call fcn.10004432
add esp, 0xc
push str._URLCUSTOM_EXCLUDE_
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x10004718
push edi
push 0x10008c88
push ebx
call fcn.10004432
add esp, 0xc
push str._TITLESERVER_INCLUDE_
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x10004735
push edi
push 0x10008c58
push ebx
call fcn.10004432
add esp, 0xc
push str._TITLESERVER_EXCLUDE_
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x10004752
push edi
push 0x10008c48
push ebx
call fcn.10004432
add esp, 0xc
push str._TITLECUSTOM_INCLUDE_
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x1000476f
push edi
push 0x10008c78
push ebx
call fcn.10004432
add esp, 0xc
push str._TITLECUSTOM_EXCLUDE_
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x1000478c
push edi
push 0x10008c68
push ebx
call fcn.10004432
add esp, 0xc
push str._SEXURL_BY3721_
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x100047a9
push edi
push 0x10008c18
push ebx
call fcn.10004432
add esp, 0xc
push str._SEXURL_BYCUSTOM_
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x100047c6
push edi
push 0x10008c08
push ebx
call fcn.10004432
add esp, 0xc
mov dword [ebp - 4], 1
cmp dword [ebp + 8], 0
je 0x100047e2
cmp dword [ebp + 8], 0xffffffff
je 0x100047e2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x100047ee
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret