Function at 0x471e56
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x11c
mov edi, dword [ebp + 8]
call fcn.0043f37c
mov ebx, eax
lea eax, [ebp - 0x100]
mov dword [esp], eax
call fcn.0066643c
mov dword [esp + 4], 0x35
mov dword [esp], 0x8dfd80
call fcn.0041b8da
mov esi, eax
mov dword [esp + 4], str.SELECT__id____text__FROM__server_motd__WHERE__world_id__
lea eax, [ebp - 0xf8]
mov dword [esp], eax
call fcn.0076107c
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00702728
mov dword [esp + 4], str._ORDER_BY__id__DESC_LIMIT_1
mov dword [esp], eax
call fcn.0076107c
mov eax, dword [ebx]
mov esi, dword [eax + 0x1c]
mov dword [ebp - 0x44], 0x7bf7b0
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x471f8d
mov edx, dword [ebp - 0xe8]
cmp eax, edx
jbe 0x471f3b
lea edx, [ebp - 0x25]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xe4]
mov dword [esp + 4], eax
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.00704498
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
lea eax, [ebp - 0x44]
mov dword [esp], eax
call fcn.00703510
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.0070479c
jmp 0x471fb6
lea eax, [ebp - 0x2d]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0xe4]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.00704498
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x44]
mov dword [esp], eax
call fcn.00703510
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.0070479c
jmp 0x471fb6
lea eax, [ebp - 0xd0]
mov dword [esp + 4], eax
lea eax, [ebp - 0x44]
mov dword [esp], eax
call fcn.00703510
jmp 0x471fb6
lea eax, [ebp - 0x44]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov ebx, eax
lea eax, [ebp - 0x44]
mov dword [esp], eax
call fcn.0070479c
jmp 0x471fe3
test ebx, ebx
jne 0x472038
mov dword [esp + 4], str.__ERROR:_Failed_to_load_motd_
mov dword [esp], 0x7bfa20
call fcn.0076107c
mov dword [esp], eax
call fcn.0075c288
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1f4
mov dword [esp], 5
call fcn.0058a5ec
mov dword [edi + 0x194], eax
lea eax, [ebp - 0x100]
mov dword [esp], eax
call fcn.006668d4
jmp 0x4723bd
mov eax, dword [ebx]
mov esi, dword [eax]
lea eax, [ebp - 0x39]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d105d
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.007041ec
lea eax, [ebp - 0x40]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov dword [edi + 0x194], eax
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.0070479c
jmp 0x47208e
mov eax, dword [ebx]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x2e]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d114a
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.007041ec
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x34]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call esi
sub esp, 4
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
add edi, 0x190
mov dword [esp], edi
call fcn.00703510
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.0070479c
jmp 0x472103
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.0070479c
jmp 0x472114
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 0x10]
jmp 0x472136
mov dword [ebp - fcn.006668d4], vtable.o.14.0
mov dword [ebp - 0xcc], 0x824814
mov dword [ebp - 0xf8], 0x824800
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d1095
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.007041ec
mov eax, dword [ebp - 0x20]
mov edx, dword [eax - 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0xd0]
mov dword [esp], eax
call fcn.0070342c
mov eax, dword [ebp - 0xd4]
test al, 3
jne 0x47219b
mov ebx, 0
jmp 0x4721a4
mov eax, dword [ebp - 0xd0]
mov ebx, dword [eax - 0xc]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xd0]
mov dword [esp + 4], eax
lea eax, [ebp - 0xf4]
mov dword [esp], eax
call fcn.00717e3c
jmp 0x4721dc
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.0070479c
jmp 0x4721f0
mov edx, 0x8d18a0
mov eax, dword [edx]
dec eax
mov dword [edx], eax
test eax, eax
jne 0x4722b4
mov dword [esp + 4], 0
mov dword [esp], 0x8d18a4
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
sub esp, 8
mov edi, 0x8d18a8
mov dword [esp + 4], 0x80000000
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub esp, 8
test eax, 0x40000000
jne 0x4722b4
cmp eax, 0x80000000
je 0x4722b4
mov esi, dword [0x8d18a8]
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov dword [ebp - 0x10c], eax
mov eax, esi
or eax, 0x40000000
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [ebp - 0x10c]
sub esp, 0xc
cmp esi, eax
je 0x472275
mov esi, eax
jmp 0x472252
test esi, 0x40000000
jne 0x4722b4
mov dword [esp], 0x8d18a8
call fcn.0064673c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
sub esp, 4
jmp 0x4722b4
mov eax, dword [0x8210c4]
mov dword [ebp - 0x100], eax
mov eax, dword [eax - 0xc]
mov edx, dword [0x8210e4]
mov dword [ebp + eax - 0x100], edx
mov eax, dword [0x8210e8]
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], 0x838ce8
lea eax, [ebp - 0xd0]
mov dword [esp], eax
call fcn.0070479c
jmp 0x47231f
mov dword [ebp - 0xf4], vtable.c_streambufIwSt11char_traitsIwEE.0
lea ebx, [ebp - 0x100]
lea eax, [ebp - 0xd8]
mov dword [esp], eax
call fcn.0072e050
mov eax, dword [0x8210c8]
mov dword [ebp - 0x100], eax
mov eax, dword [eax - 0xc]
mov edx, dword [0x8210dc]
mov dword [ebx + eax], edx
mov eax, dword [0x8210d4]
mov dword [ebp - 0xf8], eax
mov eax, dword [eax - 0xc]
mov edx, dword [0x8210d8]
mov dword [ebx + eax + 8], edx
mov eax, dword [0x8210cc]
mov dword [ebp - 0x100], eax
mov eax, dword [eax - 0xc]
mov edx, dword [0x8210d0]
mov dword [ebx + eax], edx
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xcc], 0x839710
lea eax, [ebp - 0xcc]
mov dword [esp], eax
call fcn.00750944
jmp 0x4723bd
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret