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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bab8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 0
push 0
push str.plugins.01000600.settings.Ecmd.Enabled
lea ecx, [ebp - 0x58]
mov edi, 0xe
push ecx
mov ecx, eax
mov dword [ebp - 0x14], edi
call fcn.00448c90
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x58]
cmp eax, 3
je 0x46c131
cmp eax, 2
jne 0x46c318
cmp dword [ebp - 0x50], 0
setne al
test al, al
je 0x46c318
push 0
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR120.dll_wcschr]
add esp, 8
add eax, 2
je 0x46c318
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push eax
call dword [0x5c008c]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46c318
mov edx, dword [0x5c001c]
lea ecx, [ebp - 0x38]
push ebx
call fcn.004722c0
add esp, 4
mov byte [ebp - 4], 1
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x46c30c
test esi, esi
je 0x46c30c
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x46c307
mov edx, dword [sym.imp.MSVCR120.dll_free]
lea ecx, [ebp - 0x2c]
push edi
mov byte [edi + esi], 0
call fcn.00430f80
add esp, 4
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46c2f6
cmp dword [ebp - 0x18], esi
jne 0x46c2f6
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x68]
push 0
push 0
push str.plugins.01000600.settings.Ecmd.AuthType
push eax
call fcn.00448c90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
push 0
call fcn.00451250
mov ecx, dword [ebp - 0x10]
mov ebx, eax
push 0
push 0
push str.plugins.01000600.settings.EKRN_CFG.LockPassword
lea eax, [ebp - 0x48]
push eax
call fcn.00448c90
mov byte [ebp - 4], 4
dec ebx
je 0x46c2c4
dec ebx
jne 0x46c2de
mov eax, dword [ebp - 0x48]
cmp eax, 3
je 0x46c264
cmp eax, 4
je 0x46c264
cmp eax, 8
je 0x46c264
fld qword [0x59bb10]
jmp 0x46c274
fldz
lea ecx, [ebp - 0x48]
sub esp, 8
fstp qword [esp]
call fcn.0043fa70
fnstcw word [ebp + 0xe]
movzx eax, word [ebp + 0xe]
or eax, 0xc00
mov dword [ebp - 0x1c], eax
fldcw word [ebp - 0x1c]
fistp qword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
xor ecx, 0x68dbaf89
fldcw word [ebp + 0xe]
je 0x46c2de
lea eax, [ebp + 0xf]
mov byte [ebp + 0xf], 0
push eax
mov edx, edi
call fcn.0043e490
add esp, 4
cmp byte [ebp + 0xf], 0
je 0x46c2de
mov ecx, dword [ebp - 0x10]
push esi
push edi
push 4
call fcn.00485240
test eax, eax
jne 0x46c2de
mov dword [ebp - 0x14], eax
jmp 0x46c2de
mov ecx, dword [ebp - 0x10]
push esi
push edi
push 4
call fcn.00485240
neg eax
mov ecx, 0xe
sbb eax, eax
and ecx, eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00440820
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.00440820
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00416890
mov edi, dword [ebp - 0x14]
jmp 0x46c30c
mov edi, 0xe
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004725d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00440820
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8