Function at 0x4a48e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73fc98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
push ebx
push esi
lea eax, [ebp - 0x22]
push edi
lea ecx, [ebp - 0x21]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.004a6b70
push 1
push str.cq_gm_checkpunish
lea edx, [ebp - 0x438]
xor ebx, ebx
push str.SELECT__FROM__s_WHERE_type_d
push edx
mov dword [ebp - 4], ebx
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x10
lea edx, [ebp - 0x438]
mov eax, dword [ecx]
push 1
push edx
call dword [eax]
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, ebx
mov byte [ebp - 4], 1
je 0x4a4ab7
mov dword [ebp - 0x20], ebx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x60]
cmp dword [ebp - 0x20], eax
jae 0x4a4ab7
push 0xc
call fcn.00728cf3
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4a4a58
mov dword [esi], 0x7534d8
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x24]
test al, al
je 0x4a49f9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x1c]
push ecx
push edx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], eax
call fcn.004a6fe0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
mov ecx, dword [ebp - 0x28]
je 0x4a49c0
cmp ecx, dword [eax + 0x10]
jae 0x4a49e7
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ecx
push eax
push ecx
lea edx, [ebp - 0x1c]
mov ecx, esp
push edx
mov dword [ebp - 0x2c], ebx
call fcn.004a6ca0
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x18]
push eax
call fcn.004a6b40
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov dword [eax + 0x14], esi
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x64]
inc dword [ebp - 0x20]
jmp 0x4a4958
push 0x30
push 0x7a4da0
push str.pData__Create_pRes_
push str.IF_NOT
push 0x793720
call fcn.00401080
mov edx, dword [edi]
add esp, 0x14
mov ecx, edi
mov byte [ebp - 4], bl
call dword [edx + 4]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 3
call fcn.004a6c40
mov eax, dword [ebp - 0x18]
push 0x18
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.004051b0
add esp, 8
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
push 0x2e
push 0x7a4da0
push str.pData
push str.CHECKF
push 0x793720
call fcn.00401080
mov eax, dword [edi]
add esp, 0x14
mov ecx, edi
mov byte [ebp - 4], bl
call dword [eax + 4]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 2
call fcn.004a6c40
mov ecx, dword [ebp - 0x18]
push 0x18
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.004051b0
add esp, 8
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
cmp edi, ebx
mov byte [ebp - 4], bl
je 0x4a4ac5
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 4
cmp eax, ebx
je 0x4a4af7
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004a6d10
mov eax, dword [ebp - 0x18]
mov dword [eax + 8], eax
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], ebx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0xc], eax
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp - 0x18]
mov ecx, 0x7e5430
call fcn.00401df0
mov eax, dword [0x7e53f8]
mov dword [esi], eax
mov dword [0x7e53f8], esi
mov dword [0x7e5430], ebx
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