Function at 0x487720
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510860
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x567680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
call fcn.0048c570
test al, al
jne 0x487767
inc dword [0x569470]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00405030
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 4], 0
call fcn.0043eb20
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x487900
test eax, eax
jne 0x487900
push str.appid_
lea ecx, [ebp - 0x20]
call fcn.00401ba0
lea ecx, [edi + 0x1c]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.00402aa0
push str._to_crxappid
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.00402b60
add esp, 0x18
push dword [eax]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00401b10
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 5
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x487807
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x487827
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x487847
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
push str.SELECT_value_FROM_internaldb_WHERE_name_q_
call fcn.004471b0
mov edx, dword [0x5671f0]
add esp, 8
mov ecx, 0x5671f0
mov edi, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
push 0
lea eax, [ebp + 0xc]
push eax
push 0x485e30
push edi
push dword [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.0043d7d0
push edi
call fcn.0044fb10
push dword [ebp - 0x10]
call fcn.0043e590
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00405030
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
add edx, 0xfffffff0
mov dword [edi], eax
add esp, 0x20
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4878ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4878ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jmp 0x487926
mov edi, dword [ebp + 8]
push 0x51707c
mov ecx, edi
call fcn.00401c30
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x487930
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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