Function at 0x505ce0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1918
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x63b404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ecx, dword [edi + 0x24]
xor bl, bl
call fcn.004ffbc0
mov esi, eax
test esi, esi
je 0x505f8b
cmp dword [esi], 0
je 0x505f8b
cmp dword [esi + 4], 0
jbe 0x505f8b
push 0x9e
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0x4e
call fcn.0056f8a6
mov ecx, dword [ebp - 0x20]
push 0xffffffffffffffff
push str.SELECT__s___s___s___s_FROM_games_WHERE__s___s_AND__s___s_AND__s_in___s__
inc ecx
mov dword [ebp - 0x24], eax
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x20]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x20], ecx
push esi
push 0x63edd8
mov dword [ebp - 4], edx
lea eax, [ebp - 0x24]
push dword [edi + 0x20]
push 0x63ebd0
push dword [edi + 0x1c]
push 0x63ee98
push 0x63f090
push 0x63f138
push 0x63f1f8
push 0x63f048
push eax
call fcn.00545b40
mov dword [ebp - 0x18], eax
add esp, 0x44
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x505dd5
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x24], 0
mov eax, dword [esi]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x505df3
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
mov esi, dword [ebp - 0x18]
add esp, 8
test esi, esi
je 0x505f8b
mov ecx, dword [0x648be8]
push 0x63edb0
push esi
call fcn.005005c0
mov edi, eax
test edi, edi
je 0x505f62
push 0x63edb0
mov ecx, edi
call fcn.00532760
test al, al
je 0x505f5a
mov ecx, edi
call fcn.00534620
test eax, eax
je 0x505f5a
push 0
mov ecx, edi
call fcn.00532cd0
test al, al
je 0x505f5a
push 0x63f138
mov ecx, edi
call fcn.00535430
mov esi, dword [ebp - 0x10]
mov ecx, edi
push 0x63f1f8
mov dword [esi + 0x38], eax
call fcn.00535430
push 0x63f090
mov ecx, edi
mov dword [esi + 0x3c], eax
call fcn.00535d60
push 0x63f048
mov ecx, edi
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
call fcn.00535430
mov ecx, eax
call fcn.00532270
mov dword [ebp - 0x14], eax
test eax, eax
je 0x505f57
push 0x63ecc0
mov ecx, eax
call fcn.00535d60
mov ecx, eax
mov esi, edx
shld esi, ecx, 4
push 0x63ec38
shl ecx, 4
sub ecx, eax
mov eax, dword [ebp - 0x10]
sbb esi, edx
shld esi, ecx, 2
shl ecx, 2
mov dword [eax + 0x48], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x4c], esi
call fcn.00535430
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push 0x63ee40
mov dword [esi + 0x50], eax
call fcn.00535430
mov ecx, eax
mov eax, dword [esi + 0x38]
mov dword [esi + 0x54], ecx
test eax, eax
je 0x505f4e
cmp dword [eax], 0
je 0x505f4e
cmp dword [eax + 4], 0
jbe 0x505f4e
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x505f4e
cmp dword [eax], 0
je 0x505f4e
cmp dword [eax + 4], 0
jbe 0x505f4e
mov eax, dword [esi + 0x50]
test eax, eax
je 0x505f4e
cmp dword [eax], 0
je 0x505f4e
cmp dword [eax + 4], 0
jbe 0x505f4e
test ecx, ecx
je 0x505f4e
cmp dword [ecx], 0
je 0x505f4e
cmp dword [ecx + 4], 0
mov eax, 1
movzx ebx, bl
cmova ebx, eax
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004ff890
mov esi, dword [ebp - 0x18]
push ecx
mov ecx, edi
call fcn.004ff890
mov eax, dword [esi]
test eax, eax
je 0x505f79
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret