Function at 0x58fc64
Capabilities:
Reference sql statements

Disassembly:
push 0x1a4
mov eax, 0x611526
call fcn.005cb937
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x34]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0x164]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00412717
push ebx
sub esp, 0x1c
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0xa4], esp
push eax
mov byte [ebp - 4], 1
lea esi, [ebp - 0x164]
call fcn.004051ae
mov ecx, esi
call fcn.0058fbfa
mov esi, 0x641890
push esi
call fcn.005c3140
add esp, 0x24
push eax
push esi
lea eax, [ebp + 0xc]
push eax
xor eax, eax
call fcn.00406e21
cmp eax, 0xffffffff
je 0x58fdfc
lea eax, [ebp - 0x144]
push eax
call fcn.00412717
push 1
sub esp, 0x1c
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0xa4], esp
push eax
mov byte [ebp - 4], 2
lea esi, [ebp - 0x144]
call fcn.004051ae
mov ecx, esi
call fcn.0058fbfa
mov eax, dword [ebp - 0x12c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x144]
add esp, 0x20
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x144]
lea edi, [ebp - 0xb4]
lea esi, [ebp - 0xac]
mov dword [ebp - 0xb4], eax
call fcn.00584150
test al, al
jne 0x58fdec
call fcn.005469a8
push eax
lea ecx, [ebp - 0x4c]
call fcn.004051ae
mov byte [ebp - 4], 3
cmp dword [ebp - 0x38], 3
jb 0x58fd9e
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0040b85d
cmp byte [eax], 0x2a
je 0x58fdcf
mov eax, dword [ebp - 0x38]
dec eax
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040b85d
cmp byte [eax], 0x2a
je 0x58fdcf
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.004055c2
lea esi, [ebp - 0xac]
call fcn.00414582
jmp 0x58fd4b
lea eax, [ebp - 0x144]
push eax
lea esi, [ebp - 0x164]
call fcn.0046dc46
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.004055c2
lea eax, [ebp - 0x144]
push eax
mov byte [ebp - 4], 1
call fcn.00412745
cmp dword [ebp - 0x148], ebx
jne 0x58fe2a
xor esi, esi
lea eax, [ebp - 0x164]
push eax
mov byte [ebp - 4], bl
call fcn.00412745
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.004055c2
mov eax, esi
call fcn.005cb9ba
ret 0x30
lea eax, [ebp - 0x184]
push eax
call fcn.00412717
mov eax, dword [ebp - 0xe0]
add eax, 0x70
push eax
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 4
call fcn.00581ad8
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x164]
lea edi, [ebp - 0x124]
lea esi, [ebp - 0xac]
mov dword [ebp - 0x124], eax
call fcn.00584150
test al, al
jne 0x5905ab
call fcn.005469a8
push eax
lea ecx, [ebp - 0x30]
call fcn.004051ae
lea eax, [ebp - 0xd0]
push eax
mov byte [ebp - 4], 6
call fcn.0044c572
xor esi, esi
inc esi
mov byte [ebp - 4], 7
cmp dword [ebp + 0x2c], esi
je 0x58fed5
cmp dword [ebp + 0x2c], 2
mov dword [ebp - 0xa0], ebx
jne 0x58fedb
mov dword [ebp - 0xa0], esi
xor edi, edi
cmp dword [ebp - 0xa0], ebx
je 0x58ff41
cmp dword [ebp - 0x1c], 3
jb 0x590015
push ebx
lea ecx, [ebp - 0x30]
call fcn.0040b85d
cmp byte [eax], 0x2a
jne 0x58ff11
push ebx
lea ecx, [ebp - 0x30]
call fcn.0040b85d
mov byte [eax], 0x25
mov dword [ebp - 0xa0], ebx
mov edi, esi
mov eax, dword [ebp - 0x1c]
dec eax
push eax
lea ecx, [ebp - 0x30]
call fcn.0040b85d
cmp byte [eax], 0x2a
jne 0x58ffad
mov eax, dword [ebp - 0x1c]
dec eax
push eax
lea ecx, [ebp - 0x30]
call fcn.0040b85d
mov byte [eax], 0x25
mov dword [ebp - 0xa0], ebx
mov edi, esi
jmp 0x58ffad
cmp dword [ebp - 0x1c], 3
jb 0x58ffb9
push ebx
lea ecx, [ebp - 0x30]
call fcn.0040b85d
cmp byte [eax], 0x2a
jne 0x58ff61
push esi
push ebx
lea ecx, [ebp - 0x30]
call fcn.0040522b
mov edi, esi
mov eax, dword [ebp - 0x1c]
dec eax
push eax
lea ecx, [ebp - 0x30]
call fcn.0040b85d
cmp byte [eax], 0x2a
jne 0x58ff83
mov eax, dword [ebp - 0x1c]
push esi
dec eax
push eax
lea ecx, [ebp - 0x30]
call fcn.0040522b
mov edi, esi
cmp edi, ebx
je 0x58ffb9
push ebx
lea ecx, [ebp - 0x30]
call fcn.0040b85d
cmp byte [eax], 0x2a
je 0x58ffb5
mov eax, dword [ebp - 0x1c]
dec eax
push eax
lea ecx, [ebp - 0x30]
call fcn.0040b85d
cmp byte [eax], 0x2a
je 0x58ffb5
mov dword [ebp - 0xa0], esi
cmp dword [ebp - 0xa0], ebx
jne 0x590015
cmp edi, ebx
jne 0x590015
lea eax, [ebp - 0x30]
push eax
mov edi, 0x65cff8
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.004049b4
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 0xa
call fcn.00404922
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call fcn.0040529a
push ebx
push 1
lea ecx, [ebp - 0xfc]
call fcn.004055c2
push ebx
push 1
lea ecx, [ebp - 0x118]
call fcn.004055c2
jmp 0x59001a
mov edi, 0x65cff8
push ebx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
call fcn.004055a6
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0xa0], ebx
je 0x590060
cmp dword [ebp - 0x18], 0x10
jae 0x590042
lea eax, [ebp - 0x2c]
push eax
push str.SELECT__nIdx_from_Search_Tokens_WHERE__token___s
mov ecx, 0x400
lea edx, [ebp - 0xfc]
call fcn.0054aa9f
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
jmp 0x590085
cmp dword [ebp - 0x18], 0x10
jae 0x590069
lea eax, [ebp - 0x2c]
push eax
push str.SELECT__nIdx_from_Search_Tokens_WHERE__token_LIKE__s
mov ecx, 0x400
lea edx, [ebp - 0xfc]
call fcn.0054aa9f
pop ecx
pop ecx
mov byte [ebp - 4], 0xe
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040529a
push ebx
push 1
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xc
call fcn.004055c2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xa4], esp
push 0x641040
call fcn.0040518c
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00581b63
lea esi, [ebp - 0x7c]
lea eax, [ebp - 0xd0]
call fcn.00578059
cmp dword [ebp + 0x2c], 2
jne 0x5901d6
cmp dword [ebp - 0xa0], ebx
je 0x5901d6
mov eax, dword [ebp - 0xc0]
sub eax, dword [ebp - 0xc4]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x5901d6
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.004049b4
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 0xf
call fcn.00404922
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x10
call fcn.0040529a
push ebx
push 1
lea ecx, [ebp - 0xfc]
call fcn.004055c2
push ebx
push 1
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0xc
call fcn.004055c2
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x59016a
lea eax, [ebp - 0x2c]
push eax
push str.SELECT__nIdx_from_Search_Tokens_WHERE__token_LIKE__s
mov ecx, 0x400
lea edx, [ebp - 0xfc]
call fcn.0054aa9f
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
call fcn.0040529a
push ebx
push 1
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xc
call fcn.004055c2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xa4], esp
push 0x641040
call fcn.0040518c
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00581b63
lea esi, [ebp - 0x7c]
lea eax, [ebp - 0xd0]
call fcn.00578059
mov eax, dword [ebp - 0xc0]
fild dword [ebp - 0xdc]
sub eax, dword [ebp - 0xc4]
push 0x18
cdq
fstp dword [ebp - 0xa4]
pop ecx
fld dword [ebp - 0xa4]
idiv ecx
mov edi, dword [ebp - 0xb8]
fadd dword [edi]
fstp dword [edi]
test eax, eax
je 0x59051e
push str.SELECT__idMsg_from_Search_CrossRef_WHERE
lea ecx, [ebp - 0x4c]
call fcn.0040556d
mov dword [ebp - 0xa0], ebx
mov eax, dword [ebp - 0xc0]
sub eax, dword [ebp - 0xc4]
push 0x18
cdq
pop ecx
idiv ecx
cmp eax, 0x32
jl 0x590239
push 0x32
pop eax
cmp dword [ebp - 0xa0], eax
jge 0x5902cf
cmp dword [ebp - 0xa0], ebx
jle 0x590263
mov esi, str._OR
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [ebp - 0x4c]
call fcn.00403f16
push ebx
push dword [ebp - 0xa0]
lea esi, [ebp - 0xd0]
call fcn.0057814f
mov esi, eax
call fcn.0040ba07
cmp dword [eax + 0x18], 0x10
jb 0x590287
mov eax, dword [eax + 4]
jmp 0x59028a
add eax, 4
push eax
push str._idToken_s
mov ecx, 0x400
lea edx, [ebp - 0xfc]
call fcn.0054aa9f
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x12
call fcn.00403e6f
push ebx
push 1
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xc
call fcn.004055c2
inc dword [ebp - 0xa0]
jmp 0x59021f
lea eax, [ebp - 0xd0]
call fcn.00578173
lea eax, [ebp - 0x114]
push eax
call fcn.0044c572
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xa0], esp
push 0x641040
mov byte [ebp - 4], 0x13
call fcn.0040518c
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00581b63
lea esi, [ebp - 0x7c]
lea eax, [ebp - 0x114]
call fcn.00578059
fld dword [ebp - 0xa4]
fadd dword [edi]
lea eax, [ebp - 0xd0]
fstp dword [edi]
call fcn.00578173
mov eax, dword [ebp - 0x104]
sub eax, dword [ebp - 0x108]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x590509
lea eax, [ebp - 0x1a4]
push eax
call fcn.00412717
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x104]
sub eax, dword [ebp - 0x108]
push 0x18
cdq
pop ecx
idiv ecx
xor edi, edi
test eax, eax
jle 0x5903b3
push ebx
push edi
lea esi, [ebp - 0x114]
call fcn.0057814f
mov esi, eax
call fcn.0040ba07
push eax
lea eax, [ebp - 0x1a4]
push eax
lea ebx, [ebp - 0x1b0]
call fcn.0041276d
mov eax, dword [ebp - 0x104]
sub eax, dword [ebp - 0x108]
push 0x18
cdq
pop ecx
idiv ecx
inc edi
xor ebx, ebx
cmp edi, eax
jl 0x590373
mov eax, dword [ebp - 0x18c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x1a4]
lea edi, [ebp - 0xd8]
lea esi, [ebp - 0xb4]
mov dword [ebp - 0xd8], eax
call fcn.00584150
test al, al
jne 0x5904f3
call fcn.005469a8
cmp dword [eax + 0x18], 0x10
jb 0x59040e
mov eax, dword [eax + 4]
jmp 0x590411
add eax, 4
push eax
push str.SELECT__msgId_FROM_Search_MsgId_WHERE__uid_s
mov ecx, 0x400
lea edx, [ebp - 0x140]
call fcn.0054aa9f
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x15
call fcn.0040529a
push ebx
push 1
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 0x14
call fcn.004055c2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xa0], esp
push 0x641040
call fcn.0040518c
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00581b63
lea eax, [ebp - 0xf8]
push eax
call fcn.0044c572
lea esi, [ebp - 0x7c]
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 0x16
call fcn.00578059
mov eax, dword [ebp - 0xe8]
sub eax, dword [ebp - 0xec]
push 0x18
cdq
pop ecx
idiv ecx
xor edi, edi
test eax, eax
jle 0x5904d4
push edi
lea esi, [ebp - 0xf8]
call fcn.0057814f
push eax
lea eax, [ebp - 0xd0]
call fcn.0058228d
mov eax, dword [ebp - 0xe8]
sub eax, dword [ebp - 0xec]
push 0x18
cdq
pop ecx
idiv ecx
inc edi
cmp edi, eax
jl 0x5904a5
lea esi, [ebp - 0xf8]
mov byte [ebp - 4], 0x14
call fcn.0057802c
lea esi, [ebp - 0xb4]
call fcn.00414582
jmp 0x5903cd
lea eax, [ebp - 0x1a4]
push eax
mov byte [ebp - 4], 0x13
call fcn.00412745
mov edi, dword [ebp - 0xb8]
fld dword [ebp - 0xa4]
lea esi, [ebp - 0x114]
fadd dword [edi]
fstp dword [edi]
call fcn.0057802c
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
call fcn.004055c2
mov eax, dword [ebp - 0xc0]
sub eax, dword [ebp - 0xc4]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x590586
lea edx, [ebp - 0x184]
lea ecx, [ebp - 0xd0]
call fcn.0058fa20
lea esi, [ebp - 0xd0]
cmp dword [ebp - 0x168], ebx
je 0x590597
call fcn.0057802c
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.004055c2
lea esi, [ebp - 0xac]
call fcn.00414582
jmp 0x58fe6e
lea edi, [ebp - 0x184]
call fcn.0041284e
lea esi, [ebp - 0xd0]
call fcn.0057802c
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.004055c2
mov eax, dword [ebp - 0x16c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x184]
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x184]
lea edi, [ebp - 0xd8]
lea esi, [ebp - 0xac]
mov dword [ebp - 0xd8], eax
call fcn.00584150
test al, al
jne 0x59063d
call fcn.005469a8
lea ecx, [ebp - 0x140]
push ecx
push dword [ebp - 0xe0]
mov ecx, eax
call fcn.0058ede1
push eax
push dword [ebp - 0x11c]
lea ebx, [ebp - 0x1b0]
mov byte [ebp - 4], 0x17
call fcn.0041276d
push 0
push 1
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 5
call fcn.004055c2
call fcn.00414582
xor ebx, ebx
jmp 0x5905c5
fild dword [ebp - 0xdc]
mov eax, dword [ebp - 0xb8]
lea edi, [ebp - 0x9c]
fadd dword [eax]
fstp dword [eax]
call fcn.00581b18
lea eax, [ebp - 0x184]
push eax
mov byte [ebp - 4], 1
call fcn.00412745
xor esi, esi
inc esi
jmp 0x58fe06