Function at 0x456810
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3abd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, 0x4d2d58
push esi
mov dword [ebp - 0x24], esi
call fcn.00461a04
add esp, 4
test eax, eax
jne 0x456a3f
cmp dword [0x4d2d84], 0x7fffffff
je 0x456a46
mov dword [ebp - 4], eax
mov eax, dword [0x4d2d50]
mov dword [ebp - 0x20], eax
cmp eax, 2
jl 0x456a20
push ebx
call fcn.00454360
mov ebx, eax
test ebx, ebx
je 0x456a1f
push edi
mov eax, 0xa
mov dword [ebx + 0x1e], 0x10028
mov word [ebx + 0x74], ax
xor edi, edi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0xffffffffffffffff
push str.SELECT_RankMap_FROM_MapRand_WHERE_RankMap_IS_NOT_NULL_ORDER_BY_RANDOM___LIMIT_1_
push dword [0x4d1304]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x4568d2
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
jne 0x4568d2
push edi
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 8
mov edi, eax
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
xor edx, edx
mov dword [ebp - 0x10], 0
add esp, 4
mov dword [ebp - 0x14], edx
lea eax, [ebx + 0x64]
test edi, edi
jne 0x4568f6
mov edi, 0x100
mov dword [eax], edi
lea eax, [ebx + 0x38]
mov ecx, dword [0x4d2d4c]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4d2d50]
nop dword [eax]
cmp edx, 6
je 0x4569f3
test eax, eax
je 0x4569f3
mov eax, dword [0x4d2d48]
mov edi, ecx
dec eax
shr edi, 2
and edi, eax
and ecx, 3
mov eax, dword [0x4d2d44]
mov edi, dword [eax + edi*4]
mov eax, dword [ebp - 0x18]
mov edi, dword [edi + ecx*4]
mov dword [eax], edi
mov eax, 2
mov word [edi + 0x36], ax
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042bfd0
mov ecx, dword [eax]
test ecx, ecx
je 0x456974
mov byte [edi + 0x59], 0
mov eax, dword [ecx + 4]
mov dword [edi + 0x54], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x48], eax
mov al, byte [ecx + 0xc]
jmp 0x456988
mov byte [edi + 0x59], 1
xor al, al
mov dword [edi + 0x54], 0
mov dword [edi + 0x48], 1
mov byte [edi + 0x58], al
mov eax, dword [ebx + 0x64]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x38], 1
mov eax, dword [ebx]
mov dword [edi + 0x88], eax
inc byte [ebx + 0x23]
mov eax, dword [0x4d2d50]
sub eax, 1
mov dword [0x4d2d50], eax
jne 0x4569d2
xor ecx, ecx
jmp 0x4569d9
mov ecx, dword [0x4d2d4c]
inc ecx
mov edx, dword [ebp - 0x14]
add dword [ebp - 0x18], 4
inc edx
mov dword [0x4d2d4c], ecx
mov dword [ebp - 0x14], edx
cmp edx, dword [ebp - 0x20]
jl 0x456910
push 0
push 0
push 0x3e8
push ebx
push 0x454610
push dword [0x4d2d54]
lea eax, [ebx + 0x58]
mov dword [ebx + 0x5c], 0x4567b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov esi, 0x4d2d58
pop edi
pop ebx
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.00461a15
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
push 5
call fcn.0046194a
push 6
mov dword [0x4d2d84], 0x7ffffffe
call fcn.0046194a
int3