Function at 0x471994
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10c
call fcn.0043f37c
mov ebx, eax
lea eax, [ebp - 0xf4]
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__record__FROM__server_record__WHERE__world_id__
lea eax, [ebp - 0xec]
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__timestamp__DESC_LIMIT_1
mov dword [esp], eax
call fcn.0076107c
mov eax, dword [ebx]
mov esi, dword [eax + 0x1c]
mov dword [ebp - 0x38], 0x7bf7b0
mov eax, dword [ebp - 0xd4]
test eax, eax
je 0x471ac8
mov edx, dword [ebp - 0xdc]
cmp eax, edx
jbe 0x471a76
lea edx, [ebp - 0x25]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xd8]
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 - 0x38]
mov dword [esp], eax
call fcn.00703510
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.0070479c
jmp 0x471af1
lea eax, [ebp - 0x2d]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0xd8]
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 - 0x38]
mov dword [esp], eax
call fcn.00703510
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.0070479c
jmp 0x471af1
lea eax, [ebp - 0xc4]
mov dword [esp + 4], eax
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.00703510
jmp 0x471af1
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov ebx, eax
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.0070479c
jmp 0x471b1e
test ebx, ebx
jne 0x471b51
mov dword [esp + 4], str.__ERROR:_Failed_to_load_players_record_
mov dword [esp], 0x7bfa20
call fcn.0076107c
mov dword [esp], eax
call fcn.0075c288
lea eax, [ebp - 0xf4]
mov dword [esp], eax
call fcn.006668d4
jmp 0x471e4d
mov eax, dword [ebx]
mov esi, dword [eax]
lea eax, [ebp - 0x2e]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d22cc
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.007041ec
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov edx, dword [ebp + 8]
mov dword [edx + 0x198], eax
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.0070479c
jmp 0x471ba4
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 0x10]
jmp 0x471bc6
mov dword [ebp - 0xf4], vtable.o.14.0
mov dword [ebp - 0xc0], 0x824814
mov dword [ebp - 0xec], 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 - 0xc4]
mov dword [esp], eax
call fcn.0070342c
mov eax, dword [ebp - 0xc8]
test al, 3
jne 0x471c2b
mov ebx, 0
jmp 0x471c34
mov eax, dword [ebp - 0xc4]
mov ebx, dword [eax - 0xc]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xc4]
mov dword [esp + 4], eax
lea eax, [ebp - 0xe8]
mov dword [esp], eax
call fcn.00717e3c
jmp 0x471c6c
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.0070479c
jmp 0x471c80
mov edx, 0x8d18a0
mov eax, dword [edx]
dec eax
mov dword [edx], eax
test eax, eax
jne 0x471d44
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 0x471d44
cmp eax, 0x80000000
je 0x471d44
mov esi, dword [0x8d18a8]
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov dword [ebp - 0xfc], eax
mov eax, esi
or eax, 0x40000000
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [ebp - 0xfc]
sub esp, 0xc
cmp esi, eax
je 0x471d05
mov esi, eax
jmp 0x471ce2
test esi, 0x40000000
jne 0x471d44
mov dword [esp], 0x8d18a8
call fcn.0064673c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
sub esp, 4
jmp 0x471d44
mov eax, dword [0x8210c4]
mov dword [ebp - 0xf4], eax
mov eax, dword [eax - 0xc]
mov edx, dword [0x8210e4]
mov dword [ebp + eax - 0xf4], edx
mov eax, dword [0x8210e8]
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], 0x838ce8
lea eax, [ebp - 0xc4]
mov dword [esp], eax
call fcn.0070479c
jmp 0x471daf
mov dword [ebp - 0xe8], vtable.c_streambufIwSt11char_traitsIwEE.0
lea ebx, [ebp - 0xf4]
lea eax, [ebp - 0xcc]
mov dword [esp], eax
call fcn.0072e050
mov eax, dword [0x8210c8]
mov dword [ebp - 0xf4], eax
mov eax, dword [eax - 0xc]
mov edx, dword [0x8210dc]
mov dword [ebx + eax], edx
mov eax, dword [0x8210d4]
mov dword [ebp - 0xec], eax
mov eax, dword [eax - 0xc]
mov edx, dword [0x8210d8]
mov dword [ebx + eax + 8], edx
mov eax, dword [0x8210cc]
mov dword [ebp - 0xf4], eax
mov eax, dword [eax - 0xc]
mov edx, dword [0x8210d0]
mov dword [ebx + eax], edx
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xc0], 0x839710
lea eax, [ebp - 0xc0]
mov dword [esp], eax
call fcn.00750944
jmp 0x471e4d
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret