Function at 0x4ba630
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8849
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x62700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call fcn.00488470
push ecx
lea ecx, [ebp - 0xf0]
mov ebx, eax
call fcn.0041c300
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
mov edx, dword [ebx]
mov ecx, ebx
push esi
push eax
call dword [edx + 0x20]
mov esi, eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
mov edx, dword [ebx]
mov ecx, ebx
push eax
call dword [edx + 0x2c]
mov edi, eax
mov edx, str.SELECT__lastip__FROM__players__WHERE__name_
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe0]
call fcn.004064c0
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x4ba6b8
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.004073f0
add esp, 4
mov edx, esi
cmp dword [esi + 0x14], 0x10
jb 0x4ba6cf
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.004073f0
add esp, 4
mov edx, 0x5db014
mov ecx, eax
call fcn.004064c0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4ba71c
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4ba712
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ba758
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x4ba768
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4ba75e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4ba75e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00404ef0
mov byte [ebp - 4], 3
mov ecx, ebx
mov edx, dword [ebx]
push eax
call dword [edx + 0x1c]
mov esi, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
test esi, esi
sete bl
cmp ecx, 0x10
jb 0x4ba7c4
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4ba7ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4ba7ba
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test bl, bl
je 0x4ba7e1
xor edi, edi
jmp 0x4ba861
mov eax, dword [str.lastip]
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x28], eax
mov ax, word [0x5db224]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 6
mov word [ebp - 0x24], ax
mov byte [ebp - 0x22], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 0
mov edi, eax
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4ba85a
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4ba850
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4ba850
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
lea ecx, [ebp - 0xf0]
call fcn.0041c440
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045ad9e
mov esp, ebp
pop ebp
ret 4