Function at 0x4b7180
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a807e
mov eax, dword fs:[0]
push eax
sub esp, 0x110
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 ebx, dword [ebp + 8]
call fcn.00488470
push ecx
lea ecx, [ebp - 0x104]
mov esi, eax
call fcn.0041c300
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x70c]
mov edx, dword [esi]
lea eax, [ebp - 0x2c]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edi, eax
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [ebp - 0x50], eax
cmp byte [0x631c98], 0
mov dword [ebp - 0x4c], edx
je 0x4b7205
mov ecx, dword [0x632104]
jmp 0x4b7237
cmp byte [0x631c99], 0
jne 0x4b7235
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::clog]
mov edx, str._Warning___ConfigManager::getNumber_
push 0x406700
push 0x32
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 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___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor ecx, ecx
push ecx
push ecx
mov edx, str.INSERT_INTO__guilds____id____world_id____name____ownerid____creationdata____motd___VALUES__NULL_
lea ecx, [ebp - 0xf4]
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, 0x5d80bc
mov ecx, eax
call fcn.004064c0
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x4b726a
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.004073f0
add esp, 4
mov edx, 0x5d80b4
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [ebx + 0x578]
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, 0x5d80b8
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___long_long___int64__]
mov edx, str.__Your_guild_has_been_successfully_created__to_view_all_available_commands_type:__commands._If_you_would_like_to_remove_this_message_use__cleanmotd_and_to_set_new_motd_use__setmotd_text._
mov ecx, eax
call fcn.004064c0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x4b72f5
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b72eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b72eb
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
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x104]
call fcn.00404ef0
push eax
mov byte [ebp - 4], 2
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
call eax
test al, al
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
sete al
mov byte [ebp - 0x45], al
cmp ecx, 0x10
jb 0x4b7357
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b734a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b734a
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 - 0x45]
add esp, 8
test al, al
jne 0x4b745e
lea ecx, [ebp - 0xec]
call fcn.00405f10
and dword [ebp - 0xb0], 0xffffffdf
mov edx, str.SELECT__id__FROM__guilds__WHERE__ownerid__
mov byte [ebp - 4], 0
push dword [ebx + 0x578]
mov dword [ebp - 0xb4], 0
push ecx
lea ecx, [ebp - 0xf4]
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, 0x5d8124
mov ecx, eax
call fcn.004064c0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x104]
call fcn.00404ef0
mov byte [ebp - 4], 4
mov ecx, esi
mov edx, dword [esi]
push eax
call dword [edx + 0x1c]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00405b30
test esi, esi
je 0x4b745e
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 [esi]
push ecx
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 0
mov edi, eax
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x4b744a
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b7440
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b7440
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]
push 1
push edi
push ebx
call fcn.004b6d60
mov bl, al
jmp 0x4b7460
xor bl, bl
lea ecx, [ebp - 0x104]
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 4