Function at 0x504fb0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0b08
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x63a404]
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.004fee90
mov esi, eax
test esi, esi
je 0x50525b
cmp dword [esi], 0
je 0x50525b
cmp dword [esi + 4], 0
jbe 0x50525b
push 0x9e
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0x4e
call fcn.0056ea97
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.00584f75
mov ecx, dword [ebp - 0x20]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x20], ecx
push esi
push 0x63dd98
mov dword [ebp - 4], edx
lea eax, [ebp - 0x24]
push dword [edi + 0x20]
push 0x63db90
push dword [edi + 0x1c]
push 0x63de58
push 0x63e048
push 0x63e0f0
push 0x63e1b0
push 0x63e000
push eax
call fcn.00544d50
mov dword [ebp - 0x18], eax
add esp, 0x44
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x5050a5
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x24], 0
mov eax, dword [esi]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x5050c3
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
mov esi, dword [ebp - 0x18]
add esp, 8
test esi, esi
je 0x50525b
mov ecx, dword [0x647ac8]
push 0x63dd70
push esi
call fcn.004ff890
mov edi, eax
test edi, edi
je 0x505232
push 0x63dd70
mov ecx, edi
call fcn.00531970
test al, al
je 0x50522a
mov ecx, edi
call fcn.00533830
test eax, eax
je 0x50522a
push 0
mov ecx, edi
call fcn.00531ee0
test al, al
je 0x50522a
push 0x63e0f0
mov ecx, edi
call fcn.00534640
mov esi, dword [ebp - 0x10]
mov ecx, edi
push 0x63e1b0
mov dword [esi + 0x38], eax
call fcn.00534640
push 0x63e048
mov ecx, edi
mov dword [esi + 0x3c], eax
call fcn.00534f70
push 0x63e000
mov ecx, edi
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
call fcn.00534640
mov ecx, eax
call fcn.00531480
mov dword [ebp - 0x14], eax
test eax, eax
je 0x505227
push 0x63dc80
mov ecx, eax
call fcn.00534f70
mov ecx, eax
mov esi, edx
shld esi, ecx, 4
push 0x63dbf8
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.00534640
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push 0x63de00
mov dword [esi + 0x50], eax
call fcn.00534640
mov ecx, eax
mov eax, dword [esi + 0x38]
mov dword [esi + 0x54], ecx
test eax, eax
je 0x50521e
cmp dword [eax], 0
je 0x50521e
cmp dword [eax + 4], 0
jbe 0x50521e
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x50521e
cmp dword [eax], 0
je 0x50521e
cmp dword [eax + 4], 0
jbe 0x50521e
mov eax, dword [esi + 0x50]
test eax, eax
je 0x50521e
cmp dword [eax], 0
je 0x50521e
cmp dword [eax + 4], 0
jbe 0x50521e
test ecx, ecx
je 0x50521e
cmp dword [ecx], 0
je 0x50521e
cmp dword [ecx + 4], 0
mov eax, 1
movzx ebx, bl
cmova ebx, eax
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004feb60
mov esi, dword [ebp - 0x18]
push ecx
mov ecx, edi
call fcn.004feb60
mov eax, dword [esi]
test eax, eax
je 0x505249
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
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