Function at 0x456a60
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, 0x4d2c8c
push esi
mov dword [ebp - 0x24], esi
call fcn.00461a04
add esp, 4
test eax, eax
jne 0x456c81
cmp dword [0x4d2cb8], 0x7fffffff
je 0x456c88
mov dword [ebp - 4], eax
mov eax, dword [0x4d2d34]
mov dword [ebp - 0x20], eax
cmp eax, 2
jl 0x456c62
push ebx
call fcn.00454360
mov ebx, eax
test ebx, ebx
je 0x456c61
push edi
xor eax, eax
mov dword [ebx + 0x1e], 0x10001
mov word [ebx + 0x74], ax
xor edi, edi
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push str.SELECT_BorderMap_FROM_MapRand_WHERE_BorderMap_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 0x456b1b
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
jne 0x456b1b
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 0x456b3f
mov edi, 0x100
mov dword [eax], edi
lea eax, [ebx + 0x38]
mov ecx, dword [0x4d2d30]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4d2d34]
cmp edx, 6
je 0x456c35
test eax, eax
je 0x456c35
mov eax, dword [0x4d2d2c]
mov edi, ecx
dec eax
shr edi, 2
and edi, eax
and ecx, 3
mov eax, dword [0x4d2d28]
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 0x456bb6
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 0x456bca
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 [0x4d2d34]
sub eax, 1
mov dword [0x4d2d34], eax
jne 0x456c14
xor ecx, ecx
jmp 0x456c1b
mov ecx, dword [0x4d2d30]
inc ecx
mov edx, dword [ebp - 0x14]
add dword [ebp - 0x18], 4
inc edx
mov dword [0x4d2d30], ecx
mov dword [ebp - 0x14], edx
cmp edx, dword [ebp - 0x20]
jl 0x456b52
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, 0x4d2c8c
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 [0x4d2cb8], 0x7ffffffe
call fcn.0046194a
int3