Function at 0x48e810
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5187c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x577680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], 0
call fcn.00493d80
test al, al
jne 0x48e86a
mov eax, dword [0x578ad4]
xor esi, esi
test eax, eax
je 0x48e864
mov ecx, eax
cdq
and ecx, 1
sub eax, edx
add esi, ecx
sar eax, 1
jne 0x48e856
mov dword [0x578ad4], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004056f0
lea edi, [eax + 0x10]
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 4], 0
call fcn.004427f0
mov ecx, dword [0x578ad4]
mov ebx, eax
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ecx, 0xe
idiv ecx
add esp, 0xc
mov dword [ebp + 0xc], ebx
cmp edx, 0xa
jne 0x48e8f0
push 0x28
call fcn.004ef820
add esp, 4
mov ebx, eax
xor esi, esi
call fcn.004f1791
add eax, dword [0x578ad4]
inc esi
mov dword [ebx + esi*4 - 4], eax
cmp esi, 0xa
jl 0x48e8c7
mov eax, dword [ebx + 0x24]
push ebx
mov dword [0x578ad4], eax
call fcn.004f0683
mov ebx, dword [ebp + 0xc]
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x48eb6f
test ebx, ebx
jne 0x48eb6f
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, str.appid_
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x48e942
movzx esi, ax
push ebx
push esi
call fcn.00403070
add esp, 8
test eax, eax
je 0x48e94f
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.00408b00
jmp 0x48e94f
push str.appid_
lea ecx, [ebp - 0x10]
call fcn.004027b0
mov eax, dword [ebp - 0x1c]
add eax, 0x1c
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.00402a80
push str._to_crxappid
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 4
call fcn.00402b40
add esp, 0x18
mov ebx, dword [eax]
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
mov byte [ebp - 4], 5
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
mov byte [ebp - 4], 6
test ebx, ebx
je 0x48e9c4
test ebx, 0xffff0000
jne 0x48e9c4
movzx ebx, bx
push 0
push ebx
call fcn.00403070
add esp, 8
test eax, eax
je 0x48e9d0
push ebx
push eax
lea ecx, [ebp + 0xc]
call fcn.00408a40
jmp 0x48e9cd
push ebx
lea ecx, [ebp + 0xc]
call fcn.00402720
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 8
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x48e9f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48ea13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48ea33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
push str.SELECT_value_FROM_internaldb_WHERE_name_q_
call fcn.0044ae80
mov edx, dword [0x5771f0]
add esp, 8
mov ecx, 0x5771f0
mov ebx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0x48cbc0
push ebx
push dword [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00441500
call fcn.00493900
mov ecx, dword [0x57a10c]
mov edx, 0x1748eadf
test al, al
cmove ecx, edx
push ebx
mov dword [0x57a10c], ecx
call fcn.00442730
push dword [ebp - 0x14]
call fcn.00442240
mov ecx, dword [0x578ad4]
mov dword [ebp - 0x1c], 0x16
lea ebx, [ecx + 1]
lea eax, [ecx + 2]
imul eax, ebx
imul eax, ecx
cdq
idiv dword [ebp - 0x1c]
add esp, 0x1c
cmp edx, 0x15
jne 0x48eae3
sub ecx, 0
je 0x48ead9
dec ecx
je 0x48eacd
mov dword [0x578ad4], ebx
jmp 0x48eae3
mov dword [0x578ad4], 0
jmp 0x48eae3
mov dword [0x578ad4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
push eax
call fcn.004056f0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
add eax, 0x10
add edx, 0xfffffff0
mov dword [ecx], eax
or ebx, 0xffffffff
add esp, 4
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48eb1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48eb3a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x48eb58
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, 0x52e4a0
mov byte [ebp - 4], 1
push 0
test eax, 0xffff0000
jne 0x48ebb1
movzx ebx, ax
push ebx
call fcn.00403070
add esp, 8
test eax, eax
je 0x48ebbd
push ebx
push eax
mov ecx, esi
call fcn.00408b00
jmp 0x48ebbd
push 0x52e4a0
mov ecx, esi
call fcn.0040c730
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48ebde
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8