Function at 0x457120
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00463070
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
mov ebx, ecx
push edi
mov edi, edx
push dword [edi]
call esi
push dword [edi + 4]
mov dword [ebp - 4], eax
call esi
mov edi, dword [ebp - 4]
mov dword [ebx + 0x74], edi
cmp edi, 0x6a5
je 0x45716d
mov ecx, ebx
call fcn.00448180
xor edx, edx
mov ecx, ebx
call fcn.00455ed0
xor edx, edx
mov ecx, ebx
call fcn.00456130
movzx ecx, word [ebx + 0x34]
call fcn.00454420
test eax, eax
je 0x457182
mov esi, dword [eax + 0x64]
cmp esi, 0x64
jae 0x4571dd
push 0
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0xffffffffffffffff
push str.SELECT_AllMap_FROM_MapRand_WHERE_AllMap_IS_NOT_NULL_ORDER_BY_RANDOM___LIMIT_1_
push dword [0x4d1304]
mov dword [ebp - 4], esi
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x4571c7
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
jne 0x4571c7
push esi
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 8
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov eax, 0x100
test esi, esi
cmove esi, eax
cmp edi, 0x49
jne 0x4571fd
mov eax, dword [ebx + 0x7c]
mov esi, dword [eax*4 + 0x4b4928]
test eax, eax
jne 0x4571f9
mov dword [ebx + 0x7c], 4
jmp 0x4571fd
dec eax
mov dword [ebx + 0x7c], eax
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
call fcn.0042bfd0
mov ecx, dword [eax]
xor eax, eax
mov word [ebx + 0x36], ax
mov dword [ebx + 0x38], 1
test ecx, ecx
je 0x457230
mov byte [ebx + 0x59], al
mov eax, dword [ecx + 4]
mov dword [ebx + 0x54], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 0x48], eax
mov al, byte [ecx + 0xc]
jmp 0x457240
mov dword [ebx + 0x54], eax
xor al, al
mov byte [ebx + 0x59], 1
mov dword [ebx + 0x48], 1
mov byte [ebx + 0x58], al
mov dword [ebx + 0x40], esi
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
cmp edi, 0x6a5
jne 0x457381
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push 0xea60
call edi
push 0x6a5
mov dword [ebp - 0x2004], eax
call edi
push esi
mov dword [ebp - 0x2000], eax
call edi
xorps xmm0, xmm0
mov dword [ebp - 0x1ffc], eax
push 0
movups xmmword [ebp - 0x1ff8], xmm0
movups xmmword [ebp - 0x1fe8], xmm0
call edi
push 0
mov dword [ebp - 0x1fd8], eax
call fcn.00480067
add esp, 4
push eax
call edi
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov dword [ebp - 0x1fd4], eax
movzx eax, word [ebx + 0x48]
push eax
call esi
push 0
mov word [ebp - 0x1fd0], ax
call edi
push 0
mov dword [ebp - 0x1fce], eax
call edi
push 0
mov dword [ebp - 0x1fca], eax
call esi
push 0
mov word [ebp - 0x1fc6], ax
call esi
push 0
mov word [ebp - 0x1fc4], ax
call edi
push 0
mov dword [ebp - 0x1fc2], eax
mov word [ebp - 0x1fbe], 0
mov byte [ebp - 0x1fbc], 0
call esi
push 0
mov word [ebp - 0x1fbb], ax
call edi
push 0
mov dword [ebp - 0x1fb9], eax
call esi
push 0
mov word [ebp - 0x1fb5], ax
call esi
push 0
mov word [ebp - 0x1fb3], ax
mov byte [ebp - 0x1fb1], 0
call edi
push 0
mov dword [ebp - 0x1fb0], eax
call edi
push 0
mov dword [ebp - 0x1fac], eax
call edi
push 1
push 2
mov dword [ebp - 0x1fa8], eax
movzx eax, word [ebx + 0x10]
push eax
movzx eax, word [ebx + 0x36]
push 3
push eax
push 0x60
lea eax, [ebp - 0x2004]
push eax
jmp 0x4573f8
cmp edi, 0x49
jne 0x4573bf
push esi
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [0x4d22d0], eax
movzx eax, word [ebx + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 1
push 2
mov word [0x4d22fc], ax
movzx eax, word [ebx + 0x10]
push eax
movzx eax, word [ebx + 0x36]
push 3
push eax
push 0x788
push 0x4d22c8
jmp 0x4573f8
cmp edi, 0x6e
jne 0x457407
push esi
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [0x4d2ad0], eax
movzx eax, word [ebx + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 1
push 2
mov word [0x4d2afc], ax
movzx eax, word [ebx + 0x10]
push eax
movzx eax, word [ebx + 0x36]
push 3
push eax
push 0x62
push 0x4d2ac8
mov edx, 0x212
mov ecx, ebx
call fcn.00437370
add esp, 0x1c
xor edx, edx
mov ecx, ebx
call fcn.0041f360
movzx eax, word [ebx + 0x10]
mov edx, 0x213
push 1
push 2
push eax
movzx eax, word [ebx + 0x36]
mov ecx, ebx
push 3
push eax
push 2
push 0x4b6e04
call fcn.00437370
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret