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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2f44
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5f8800]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov ax, word [0x5c8dac]
xor bl, bl
push 0
push 0
push 3
push 0
push 0
mov word [ebp - 0x10], ax
xor bh, bh
mov al, byte [0x5c8dae]
push closesocket
push str.contentsItemName.cfg
mov byte [ebp - 0xe], al
mov dword [ecx + 0x194b10], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp esi, 0xffffffff
je 0x49332e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5c45dc
lea eax, [ebp - 0x24]
push str.contentsItemName.cfg
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
add esp, 0xc
test eax, eax
je 0x49335c
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [edi + 2]
push esi
call fcn.005aa4da
push esi
push 0
push eax
mov dword [ebp - 0x20], eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x24]
push 1
push edi
mov edi, dword [ebp - 0x20]
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strtok_s
mov esi, eax
add esp, 0x2c
test esi, esi
je 0x493471
mov edi, dword [ebp - 0x14]
nop
test bl, bl
je 0x493446
movsx ecx, bl
sub ecx, 1
jne 0x493452
movsx eax, bh
sub eax, 1
je 0x4933ed
sub eax, 1
jne 0x493452
mov eax, dword [edi + 0x194b10]
push esi
push 0x33
mov eax, dword [edi + eax*4 + 0x1873a8]
add eax, 0x19
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
add esp, 0xc
xor bl, bl
xor bh, bh
inc dword [edi + 0x194b10]
jmp 0x493452
push 0x4c
call fcn.005aa520
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x493410
mov ecx, eax
call fcn.00585280
mov ecx, eax
jmp 0x493412
xor ecx, ecx
mov eax, dword [edi + 0x194b10]
push esi
push 0x15
mov dword [ebp - 4], 0xffffffff
mov dword [edi + eax*4 + 0x1873a8], ecx
mov eax, dword [edi + 0x194b10]
mov eax, dword [edi + eax*4 + 0x1873a8]
add eax, 4
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
add esp, 0xc
mov bh, 2
jmp 0x493452
cmp dword [esi], 0x6d657449
jne 0x493452
mov bl, 1
mov bh, bl
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
call sub.api_ms_win_crt_string_l1_1_0.dll_strtok_s
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4933a0
mov edi, dword [ebp - 0x20]
push edi
call fcn.005aa4e3
mov eax, dword [ebp - 0x24]
add esp, 4
test eax, eax
je 0x49348a
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
mov esi, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ecx, dword [esi + 0x194b10]
mov dword [ebp - 0x30], ecx
test ecx, ecx
jle 0x4935dd
lea eax, [esi + 0x1873a8]
mov edi, eax
mov dword [ebp - 0x38], eax
lea ebx, [esi + 0x1873ac]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], ebx
mov eax, esi
nop dword [eax]
lea esi, [edx + 1]
cmp esi, ecx
jge 0x4935bc
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x18]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x3c], eax
lea ebx, [eax + 0x19]
mov dword [ebp - 0x28], ebx
nop dword [eax]
mov edx, dword [edi]
mov eax, ebx
add edx, 0x19
mov ecx, edx
nop dword [eax]
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x493510
test bl, bl
je 0x49350c
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x493510
add eax, 2
add ecx, 2
test bl, bl
jne 0x4934f0
xor eax, eax
jmp 0x493515
sbb eax, eax
or eax, 1
test eax, eax
js 0x49357d
mov eax, dword [ebp - 0x28]
nop dword [eax]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x493540
test cl, cl
je 0x49353c
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x493540
add eax, 2
add edx, 2
test cl, cl
jne 0x493520
xor eax, eax
jmp 0x493545
sbb eax, eax
or eax, 1
mov ebx, dword [edi]
test eax, eax
jne 0x49358e
mov eax, dword [ebp - 0x3c]
lea ecx, [ebx + 4]
add eax, 4
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x493574
test dl, dl
je 0x493570
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x493574
add eax, 2
add ecx, 2
test dl, dl
jne 0x493554
xor eax, eax
jmp 0x493579
sbb eax, eax
or eax, 1
test eax, eax
jg 0x49358e
inc esi
add edi, 4
cmp esi, dword [ebp - 0x30]
jge 0x4935b0
mov ebx, dword [ebp - 0x28]
jmp 0x4934e0
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
dec edx
mov eax, dword [edi]
mov dword [edi], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ecx + esi*4 + 0x1873a8], eax
sub ebx, 4
sub edi, 4
mov eax, ecx
jmp 0x4935bc
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [eax + 0x194b10]
inc edx
add ebx, 4
mov dword [ebp - 0x1c], edx
add edi, 4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], ecx
cmp edx, ecx
jl 0x4934c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret