Function at 0x4b6d60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8019
mov eax, dword fs:[0]
push eax
sub esp, 0x158
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 + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x75], al
call fcn.00488470
mov ebx, eax
push ecx
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x80], ebx
call fcn.0041c300
push dword [ebp - 0x7c]
cmp byte [ebp - 0x75], 0
mov eax, 0x5d83a0
push ecx
mov esi, 0x5d8334
mov dword [ebp - 4], 0
mov edx, 0x5d83a8
lea ecx, [ebp - 0x124]
cmove esi, 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, 0x5d8390
mov ecx, eax
call fcn.004064c0
mov edx, esi
mov ecx, eax
call fcn.004064c0
mov edx, 0x5d8384
mov ecx, eax
call fcn.004064c0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x134]
call fcn.00404ef0
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebx]
push eax
call dword [edx + 0x1c]
mov esi, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
test esi, esi
sete al
mov byte [ebp - 0x76], al
cmp ecx, 0x10
jb 0x4b6e6d
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b6e60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b6e60
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 - 0x76]
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
test al, al
je 0x4b6e8a
xor bl, bl
jmp 0x4b7146
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], 2
lea ecx, [ebp - 0x2c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x84], eax
cmp ecx, 0x10
jb 0x4b6efa
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b6ef0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b6ef0
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]
mov esi, 0xf
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x2c], 0
cmp byte [ebp - 0x75], 0
jne 0x4b6ff3
lea ecx, [ebp - 0x11c]
call fcn.00405f10
push dword [ebp - 0x7c]
and dword [ebp - 0xe0], 0xffffffdf
mov edx, str.SELECT__name__FROM__guilds__WHERE__id__
push ecx
lea ecx, [ebp - 0x124]
mov dword [ebp - 0xe4], 0
mov byte [ebp - 4], 3
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, 0x5d83dc
mov ecx, eax
call fcn.004064c0
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x134]
call fcn.00404ef0
mov byte [ebp - 4], 5
mov ecx, ebx
mov edx, dword [ebx]
push eax
call dword [edx + 0x1c]
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 3
mov ebx, eax
call fcn.00405b30
test ebx, ebx
je 0x4b70b9
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x44], 0x656d616e
mov byte [ebp - 0x40], 0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
mov eax, dword [ebx]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, ebx
call dword [eax + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004086d0
lea ecx, [ebp - 0x5c]
call fcn.00405b30
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00405b30
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x80]
lea ecx, [ebp - 0x11c]
call fcn.00405f10
and dword [ebp - 0xe0], 0xffffffdf
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0xe4], 0
mov byte [ebp - 4], 3
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x30]
mov ebx, eax
mov byte [ebp - 4], 8
mov edx, 0x5d8300
push dword [edi + 0x578]
push dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x124]
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, 0x5d82e0
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 0x4b706e
mov edx, dword [ebx]
push dword [ebx + 0x10]
mov ecx, eax
call fcn.004073f0
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.00405b30
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x134]
call fcn.00404ef0
push eax
mov edx, dword [ebp - 0x80]
mov ecx, edx
mov byte [ebp - 4], 9
mov eax, dword [edx]
mov eax, dword [eax + 0x18]
call eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
mov bl, al
call fcn.00405b30
test bl, bl
jne 0x4b70bd
xor bl, bl
jmp 0x4b7113
cmp byte [ebp - 0x75], 0
mov ebx, 1
mov eax, dword [ebp - 0x7c]
mov dword [edi + 0x584], eax
jne 0x4b70f3
lea ecx, [edi + 0x70c]
lea eax, [ebp - 0x2c]
cmp ecx, eax
je 0x4b70f8
push dword [ebp - 0x1c]
cmp esi, 0x10
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00405890
mov esi, dword [ebp - 0x18]
jmp 0x4b70f8
mov ebx, 3
push dword [ebp - 0x84]
mov ecx, edi
push ebx
call fcn.00554360
lea ecx, [edi + 0x320]
call fcn.00418e60
mov bl, 1
cmp esi, 0x10
jb 0x4b7146
mov ecx, dword [ebp - 0x2c]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x4b713c
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b713c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
push ecx
call fcn.0045b34b
add esp, 8
lea ecx, [ebp - 0x134]
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 - 0x14]
xor ecx, ebp
call fcn.0045ad9e
mov esp, ebp
pop ebp
ret 0xc