Function at 0x4b92a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8589
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
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
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x60], ebx
call fcn.00488470
push ecx
lea ecx, [ebp - 0x110]
mov edi, eax
call fcn.0041c300
push esi
push ebx
mov dword [ebp - 4], 0
call fcn.004b85e0
push eax
push ecx
mov edx, str.SELECT__id__FROM__guild_ranks__WHERE__guild_id__
lea ecx, [ebp - 0x100]
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_]
push ecx
mov edx, str._AND__level__
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___int_]
mov edx, 0x5d86cc
mov ecx, eax
call fcn.004064c0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x110]
call fcn.00404ef0
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [edi]
push eax
call dword [edx + 0x1c]
mov ebx, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
test ebx, ebx
sete al
mov byte [ebp - 0x59], al
cmp ecx, 0x10
jb 0x4b939b
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b938e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b938e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
mov al, byte [ebp - 0x59]
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test al, al
je 0x4b93b8
xor bl, bl
jmp 0x4b94d4
lea ecx, [ebp - 0xf8]
call fcn.00405f10
and dword [ebp - 0xbc], 0xffffffdf
mov eax, 0x6469
mov dword [ebp - 0x28], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 2
mov word [ebp - 0x28], ax
mov byte [ebp - 0x26], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x30]
mov esi, eax
push dword [ebp - 0x60]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
mov edx, dword [ebx]
mov ecx, ebx
push eax
call dword [edx]
push eax
push ecx
mov edx, str.UPDATE__players__SET__rank_id__
lea ecx, [ebp - 0x100]
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___int_]
push ecx
mov edx, 0x5d85b0
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 [esi + 0x14], 0x10
mov edx, esi
jb 0x4b9457
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.004073f0
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00405b30
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4b94a6
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b949c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b949c
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]
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x110]
call fcn.00404ef0
push eax
mov byte [ebp - 4], 5
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
call eax
lea ecx, [ebp - 0x58]
mov bl, al
call fcn.00405b30
lea ecx, [ebp - 0x110]
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