Function at 0x4ba890
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a88e9
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x62700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00405c30
call fcn.004a5140
test eax, eax
je 0x4ba8ec
mov esi, 3
jmp 0x4bac9d
call fcn.00488470
push ecx
lea ecx, [ebp - 0xfc]
mov edi, eax
call fcn.0041c300
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
mov edx, dword [edi]
mov ecx, edi
push eax
lea eax, [ebp - 0x44]
push eax
call dword [edx + 0x20]
mov esi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
mov edx, dword [edi]
mov ecx, edi
push eax
call dword [edx + 0x2c]
mov ebx, eax
mov edx, str.SELECT__id__FROM__players__WHERE__name_
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xec]
call fcn.004064c0
cmp dword [ebx + 0x14], 0x10
mov edx, ebx
jb 0x4ba943
mov edx, dword [ebx]
push dword [ebx + 0x10]
mov ecx, eax
call fcn.004073f0
add esp, 4
mov edx, esi
cmp dword [esi + 0x14], 0x10
jb 0x4ba95a
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.004073f0
add esp, 4
mov edx, str._AND__account_id__
push dword [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.004064c0
add esp, 4
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, 0x5dad8c
mov ecx, eax
call fcn.004064c0
lea ecx, [ebp - 0x2c]
call fcn.00405b30
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00405b30
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xfc]
call fcn.00404ef0
mov byte [ebp - 4], 4
mov ecx, edi
mov edx, dword [edi]
push eax
call dword [edx + 0x1c]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
mov ebx, eax
call fcn.00405b30
test ebx, ebx
jne 0x4ba9d6
xor esi, esi
jmp 0x4bac92
mov dword [ebp - 0x2c], 0
mov eax, 0x6469
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 2
mov word [ebp - 0x2c], ax
mov byte [ebp - 0x2a], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax]
mov byte [ebp - 4], 1
mov esi, eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x4c], esi
cmp ecx, 0x10
jb 0x4baa45
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4baa3b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4baa3b
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 [ebx]
mov ecx, ebx
call dword [eax + 0x10]
push esi
push ecx
call fcn.0040f860
add esp, 4
mov ecx, eax
call fcn.004acd90
test eax, eax
je 0x4baa6b
mov esi, 2
jmp 0x4bac92
call fcn.0040b370
push esi
call fcn.004b9500
cmp eax, 3
jne 0x4baa83
lea esi, [eax - 2]
jmp 0x4bac92
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0xfc]
call fcn.0040cd70
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405b30
mov eax, dword [edi]
lea ecx, [ebp - 0x44]
push ecx
mov ecx, edi
call dword [eax + 0x30]
mov ebx, eax
push 0
mov byte [ebp - 4], 7
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
lea ecx, [ebp - 0xec]
push esi
push edx
push eax
mov edx, str.UPDATE__players__SET__deleted__
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___long_long___int64__]
push ecx
mov edx, 0x5db098
mov ecx, eax
call fcn.004064c0
add esp, 4
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_]
cmp dword [ebx + 0x14], 0x10
mov edx, ebx
jb 0x4bab14
mov edx, dword [ebx]
push dword [ebx + 0x10]
mov ecx, eax
call fcn.004073f0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00405b30
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xfc]
call fcn.00404ef0
push eax
mov byte [ebp - 4], 8
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
call eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
mov bl, al
call fcn.00405b30
test bl, bl
jne 0x4bab63
xor esi, esi
jmp 0x4bac92
lea ecx, [ebp - 0xe4]
call fcn.00405f10
and dword [ebp - 0xa8], 0xffffffdf
mov edx, str.DELETE_FROM__guild_invites__WHERE__player_id__
push esi
push ecx
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xac], 0
mov byte [ebp - 4], 1
call fcn.004064c0
add esp, 4
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_]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xfc]
call fcn.00404ef0
mov byte [ebp - 4], 0xa
mov ecx, edi
mov edx, dword [edi]
push eax
call dword [edx + 0x18]
lea ecx, [ebp - 0x44]
call fcn.00405b30
lea ecx, [ebp - 0xe4]
call fcn.00405f10
and dword [ebp - 0xa8], 0xffffffdf
mov edx, str.DELETE_FROM__player_viplist__WHERE__vip_id__
push esi
push ecx
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xac], 0
mov byte [ebp - 4], 1
call fcn.004064c0
add esp, 4
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_]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xfc]
call fcn.00404ef0
mov byte [ebp - 4], 0xc
mov ecx, edi
mov edx, dword [edi]
push eax
call dword [edx + 0x18]
lea ecx, [ebp - 0x44]
call fcn.00405b30
mov edi, dword [0x63229c]
mov eax, dword [edi]
mov dword [ebp - 0x48], eax
cmp eax, edi
je 0x4bac8d
mov ebx, dword [ebp - 0x4c]
mov esi, dword [eax + 0x14]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x30c]
call fcn.0040b130
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xd], 0
jne 0x4bac7e
cmp ebx, dword [eax + 0x10]
jb 0x4bac7e
cmp eax, dword [esi + 0x30c]
je 0x4bac7e
push eax
lea ecx, [esi + 0x30c]
call fcn.0040d320
push 0x14
push eax
call fcn.0045b34b
mov edi, dword [0x63229c]
add esp, 8
lea ecx, [ebp - 0x48]
call fcn.0040bd40
mov eax, dword [ebp - 0x48]
cmp eax, edi
jne 0x4bac35
mov esi, 4
lea ecx, [ebp - 0xfc]
call fcn.0041c440
mov ecx, dword [ebp + 0x20]
cmp ecx, 0x10
jb 0x4bacd3
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4bacc9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4bacc9
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, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045ad9e
mov esp, ebp
pop ebp
ret 0x1c