Function at 0x5a9080
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7470e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x824
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x430]
mov eax, dword [esi + 0x5e4]
mov dword [ebp - 0x14], esi
mov ecx, eax
xor ecx, 0xbe6e1
push ecx
push eax
push str.cq_card2
push str.SELECT__FROM__s_WHERE_account_id_u__used0__chk_sum_u_ref_id__1_
push edx
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x14
lea edx, [ebp - 0x430]
mov eax, dword [ecx]
push 1
push edx
call dword [eax]
mov edi, eax
mov dword [ebp - 0x28], edi
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
jne 0x5a9106
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0064add0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], 0
test edi, edi
jne 0x5a913e
push 0x22
push str.....common_autoptr.h
push str.m_ptr
push str.ASSERT
push 0x793720
call fcn.00401080
add esp, 0x14
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x60]
cmp dword [ebp - 0x20], eax
jae 0x5a930d
test edi, edi
jne 0x5a9170
push 0x22
push str.....common_autoptr.h
push str.m_ptr
push str.ASSERT
push 0x793720
call fcn.00401080
add esp, 0x14
mov edx, dword [edi]
push str.ref_id
mov ecx, edi
call dword [edx + 0x20]
test edi, edi
mov ebx, eax
jne 0x5a91a0
push 0x22
push str.....common_autoptr.h
push str.m_ptr
push str.ASSERT
push 0x793720
call fcn.00401080
add esp, 0x14
mov eax, dword [edi]
push 1
push str.used
mov ecx, edi
call dword [eax + 0x24]
test edi, edi
jne 0x5a91d0
push 0x22
push str.....common_autoptr.h
push str.m_ptr
push str.ASSERT
push 0x793720
call fcn.00401080
add esp, 0x14
push 0
push 2
call fcn.0040ab00
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push eax
push str.time_stamp
call dword [edx + 0x24]
test edi, edi
jne 0x5a920b
push 0x22
push str.....common_autoptr.h
push str.m_ptr
push str.ASSERT
push 0x793720
call fcn.00401080
add esp, 0x14
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 8]
add esi, 8
push 0
cdq
push edx
mov edx, ecx
push eax
push 0x2e
mov ecx, esi
call dword [edx + 0x138]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
push ecx
push eax
push ebx
push 8
call fcn.0046fa60
mov edx, dword [esi]
add esp, 0x10
mov ecx, esi
call dword [edx + 8]
mov ecx, dword [ebp - 0x14]
mov esi, eax
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
push ecx
push ebx
push esi
push eax
push str.Checkout_card2_userid:_u_user_name:_s_idRef:_u_price:_u
push str.gmlog_card_checkout
call fcn.0040a4e0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add esp, 0x18
inc edx
inc ecx
mov dword [ebp - 0x1c], edx
test edi, edi
mov dword [ebp - 0x20], ecx
jne 0x5a92a0
push 0x22
push str.....common_autoptr.h
push str.m_ptr
push str.ASSERT
push 0x793720
call fcn.00401080
add esp, 0x14
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x64]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
jmp 0x5a911c
push 1
push 0x2e
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00464060
test ebx, ebx
jle 0x5a9344
lea eax, [ebx + ebx*4]
imul ebx, dword [ebp - 0x18]
mov edx, dword [esi]
lea eax, [eax + eax*4]
mov ecx, ebx
shl eax, 1
push ecx
push eax
push 0x7bb884
push esi
call dword [edx + 0xcc]
add esp, 0x10
test edi, edi
mov dword [ebp - 4], 0xffffffff
je 0x5a9356
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret