Function at 0x4b38a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a79f0
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x62700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00488470
push ecx
lea ecx, [ebp - 0xf0]
mov esi, eax
call fcn.0041c300
push dword [ebp + 8]
mov edx, str.SELECT__expires__FROM__bans__WHERE__type__
mov dword [ebp - 4], 0
push 3
lea ecx, [ebp - 0xe0]
call fcn.004064c0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov edx, str._AND__value__
mov ecx, eax
call fcn.004064c0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4b3939
push eax
mov edx, 0x5d6344
lea ecx, [ebp - 0xe0]
call fcn.004064c0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov edx, str._AND__active___1_LIMIT_1
lea ecx, [ebp - 0xe0]
call fcn.004064c0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00404ef0
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [esi]
push eax
call dword [edx + 0x1c]
mov esi, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
test esi, esi
sete bl
cmp ecx, 0x10
jb 0x4b39a5
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b399b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b399b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test bl, bl
jne 0x4b3a61
mov eax, dword [0x5d6444]
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x28], eax
mov ax, word [0x5d6448]
mov word [ebp - 0x24], ax
mov al, byte [0x5d644a]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 7
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], bl
mov edi, eax
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4b3a3d
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b3a33
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b3a33
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
test edi, edi
jle 0x4b3a65
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
cmp edi, eax
jg 0x4b3a65
push 0
push dword [ebp + 8]
call fcn.004b3030
xor bl, bl
jmp 0x4b3a67
mov bl, 1
lea ecx, [ebp - 0xf0]
call fcn.0041c440
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045ad9e
mov esp, ebp
pop ebp
ret 8