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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2e5c
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], ecx
mov eax, dword [0x5c7574]
mov dword [ebp - 0x18], eax
mov ax, word [0x5c7578]
push 0xff
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x218]
push 0
push eax
mov byte [ebp - 0x21a], 0
mov byte [ebp - 0x219], 0
mov dword [ebp - 0x224], 0
call sub.VCRUNTIME140.dll_memset
push 0xff
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push str.Skillcfg.txt
lea eax, [ebp - 0x218]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
push str.contents
lea eax, [ebp - 0x118]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
push 0x5c7568
lea eax, [ebp - 0x118]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
push 0x5c7568
lea eax, [ebp - 0x118]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
add esp, 0x48
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x118]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
add esp, 0xc
lea eax, [ebp - 0x118]
push 0
push 0
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x22c], edi
cmp esi, 0xffffffff
je 0x491eb4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5c45dc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x230]
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
add esp, 0xc
test eax, eax
jne 0x49218c
lea esi, [edi + 1]
push esi
call fcn.005aa4da
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x228], edi
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x230]
push 1
push dword [ebp - 0x22c]
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
push dword [ebp - 0x230]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
push 0x114
call fcn.005aa520
add esp, 0x28
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x491f3e
lea ecx, [ebp - 0x18]
push ecx
push edi
mov ecx, eax
call fcn.00587a70
mov edi, eax
jmp 0x491f40
xor edi, edi
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.00587b30
mov esi, eax
test esi, esi
je 0x492143
nop dword [eax + eax]
mov al, byte [ebp - 0x21a]
test al, al
je 0x492116
movsx eax, al
sub eax, 1
jne case.default.0x491f8b
movsx eax, byte [ebp - 0x219]
dec eax
cmp eax, 3
ja case.default.0x491f8b
jmp dword [eax*4 + 0x4921ac]
mov ecx, dword [ebp - 0x220]
push esi
call fcn.004869a0
test al, al
je 0x492172
push esi
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
mov ecx, dword [ebp - 0x220]
add esp, 4
cmp dword [ecx + eax*4 + 0x1859c4], 0
jne 0x492172
push 0x24
call fcn.005aa520
add esp, 4
mov dword [ebp - 0x234], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x491fed
mov ecx, eax
call fcn.00587390
mov dword [ebp - 0x224], eax
jmp 0x491ff7
mov dword [ebp - 0x224], 0
push esi
mov dword [ebp - 4], 0xffffffff
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x224]
push esi
mov dword [ecx + eax*4 + 0x1859c4], edx
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
add esp, 8
mov dword [ebp - 0x224], eax
mov byte [ebp - 0x219], 2
jmp case.default.0x491f8b
mov eax, dword [ebp - 0x220]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x224]
lea edx, [eax + ecx*4]
mov ecx, esi
mov eax, dword [edx + 0x1859c4]
movups xmmword [eax + 4], xmm0
mov dword [eax + 0x14], 0
mov byte [eax + 0x18], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x22c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x492064
sub ecx, dword [ebp - 0x22c]
mov eax, dword [edx + 0x1859c4]
push ecx
add eax, 4
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebp - 0x219], 3
jmp case.default.0x491f8b
mov ecx, dword [ebp - 0x220]
push esi
call fcn.004869a0
test al, al
je 0x492172
push esi
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
mov edx, dword [ebp - 0x224]
add esp, 4
cmp eax, 1
mov byte [ebp - 0x219], 4
mov eax, dword [ebp - 0x220]
sete cl
mov eax, dword [eax + edx*4 + 0x1859c4]
mov byte [eax + 0x19], cl
jmp case.default.0x491f8b
mov ecx, dword [ebp - 0x220]
push esi
call fcn.004869a0
test al, al
je 0x492172
push esi
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
mov ecx, dword [ebp - 0x220]
add esp, 4
mov edx, dword [ebp - 0x224]
mov byte [ebp - 0x21a], 0
mov byte [ebp - 0x219], 0
mov ecx, dword [ecx + edx*4 + 0x1859c4]
mov byte [ecx + 0x1a], al
jmp case.default.0x491f8b
cmp dword [esi], 0x6c696b73
jne case.default.0x491f8b
cmp byte [esi + 4], 0x6c
jne case.default.0x491f8b
mov byte [ebp - 0x21a], 1
mov byte [ebp - 0x219], 1
mov ecx, edi
call fcn.00587b30
mov esi, eax
test esi, esi
jne 0x491f60
test edi, edi
je 0x49214f
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push dword [ebp - 0x228]
call fcn.005aa4e3
add esp, 4
cmp byte [ebp - 0x21a], 0
jne 0x49218c
cmp byte [ebp - 0x219], 0
sete al
jmp 0x49218e
push dword [ebp - 0x228]
call fcn.005aa4e3
add esp, 4
test edi, edi
je 0x49218c
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret