Function at 0x490310
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73e5db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x460
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x28], esi
cmp dword [esi + 0x28], ebx
je 0x49035e
push 0xbc
push 0x7a3cfc
push str._m_pData
push str.ASSERT
push 0x793720
call fcn.00401080
add esp, 0x14
push 0xc
call fcn.00728cf3
add esp, 4
cmp eax, ebx
je 0x49037a
mov dword [eax], 0x75339c
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x49037c
xor eax, eax
cmp eax, ebx
mov dword [esi + 0x28], eax
jne 0x4903b9
push 0xbf
push 0x7a3cfc
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
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 4
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x24]
test al, al
jne 0x4903fe
push 0xc0
push 0x7a3cfc
push str.m_pData__Create_pRes_
push str.IF_NOT
push 0x793720
call fcn.00401080
add esp, 0x14
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 4
mov ecx, dword [esi + 0x28]
push 9
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x490421
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 4
mov eax, dword [esi + 0x28]
push 0xa4
mov eax, dword [eax + 8]
mov dword [esi + 0xc], eax
call fcn.00728cf3
add esp, 4
mov dword [ebp + 8], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x49044a
mov ecx, eax
call fcn.00658d60
jmp 0x49044c
xor eax, eax
cmp eax, ebx
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x64], eax
je 0x490465
mov ecx, dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.00659220
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx]
call dword [edx + 4]
push eax
push 0x79a1ac
push 0x79a16c
lea eax, [ebp - 0x46c]
push str.SELECT_COUNT___FROM__s_as_s_LEFT_JOIN__s_AS_u_ON_u.ids.id_WHERE_s.syn_id_u__u.id_IS_NOT_NULL
push eax
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x14
lea eax, [ebp - 0x46c]
mov edx, dword [ecx]
push 1
push eax
call dword [edx]
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x6c], edi
test edi, edi
mov dword [ebp - 4], 1
je 0x49053c
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x44]
mov ecx, dword [esi + 0x28]
mov ebx, eax
push 0xa
mov byte [ebp + 0xb], 0
mov eax, dword [ecx]
call dword [eax + 8]
cmp ebx, eax
je 0x4904e2
mov ecx, dword [esi + 0x28]
push ebx
push 0xa
mov edx, dword [ecx]
call dword [edx + 0x10]
mov byte [ebp + 0xb], 1
test ebx, ebx
jne 0x49052d
mov ecx, dword [esi + 0x28]
push 9
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne 0x49052d
mov ecx, dword [esi + 0x28]
push 2
push 9
mov edx, dword [ecx]
call dword [edx + 0x10]
mov esi, dword [esi + 0x28]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x2c]
mov edx, dword [edi]
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call dword [edx + 4]
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 4
mov al, byte [ebp + 0xb]
test al, al
je 0x49053c
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x2c]
push ebx
mov ecx, esi
call fcn.00490d10
test al, al
jne 0x49056f
test edi, edi
mov dword [ebp - 4], 0xffffffff
je 0x49055a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
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 4
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push eax
push eax
push 0x12c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0049d570
mov ecx, dword [ebp - 0x1c]
mov ebx, eax
mov eax, dword [ebp - 0x14]
sub eax, ecx
sar eax, 6
je 0x4905e1
shl eax, 6
cmp eax, 0x80
jbe 0x4905b1
push ecx
call fcn.00702a90
add esp, 4
jmp 0x4905e1
add eax, 7
mov dword [ebp + 8], ecx
shr eax, 3
mov ecx, 0x7e5430
lea edi, [eax*4 + 0x7e53ec]
call fcn.00401df0
mov ecx, dword [edi]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [edi], eax
mov dword [0x7e5430], 0
mov edi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
add ebx, 0x4b00
mov dword [ebp - 0x14], ebx
mov edx, dword [ecx]
push 0x499602d2
call dword [edx + 4]
push eax
push 0x79a1ac
push 0x79a16c
lea eax, [ebp - 0x46c]
push str.SELECT_s.id__u.name__s.rank__s.assistant_id__u.mate_s.proffer_exploit__s.proffer_money__s.proffer_train__s.proffer_eudemon_s.employtime__s.master_id__u.flower__u.flower_w__u.lookface__u.level__s.proffer_emoney_FROM__s_as_s_LEFT_JOIN__s_AS_u_ON_u.ids.id_WHERE_s.syn_id_u__u.id_IS_NOT_NULL_ORDER_BY_s.rank_DESC__u.name_LIMIT__d
push eax
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x18
lea eax, [ebp - 0x46c]
mov edx, dword [ecx]
push 1
push eax
call dword [edx]
mov ebx, eax
test ebx, ebx
je 0x4907ce
mov edx, dword [ebx]
mov ecx, ebx
mov dword [ebp + 8], 0
call dword [edx + 0x60]
test eax, eax
jbe 0x4907c7
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x44]
mov edx, dword [ebx]
push 0x10
push 1
mov ecx, ebx
mov dword [ebp - 0x68], eax
call dword [edx + 0x48]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0040cc10
mov edx, dword [ebx]
add esp, 0xc
mov ecx, ebx
push 2
call dword [edx + 0x44]
cmp eax, 0xc8
mov dword [ebp - 0x54], eax
jge 0x49068d
mov dword [ebp - 0x54], 0xc8
mov eax, dword [ebx]
push 3
mov ecx, ebx
call dword [eax + 0x44]
mov edx, dword [ebx]
push 4
mov ecx, ebx
mov dword [ebp - 0x50], eax
call dword [edx + 0x48]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx]
push 5
mov ecx, ebx
call dword [eax + 0x44]
mov edx, dword [ebx]
push 6
mov ecx, ebx
mov dword [ebp - 0x48], eax
call dword [edx + 0x44]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx]
push 7
mov ecx, ebx
call dword [eax + 0x44]
mov edx, dword [ebx]
push 9
mov ecx, ebx
mov dword [ebp - 0x40], eax
call dword [edx + 0x44]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx]
push 0xa
mov ecx, ebx
call dword [eax + 0x44]
mov edx, dword [ebx]
push 0xb
mov ecx, ebx
mov dword [ebp - 0x4c], eax
call dword [edx + 0x44]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx]
push 0xc
mov ecx, ebx
call dword [eax + 0x44]
mov edx, dword [ebx]
push 0xd
mov ecx, ebx
mov dword [ebp - 0x38], eax
call dword [edx + 0x44]
and eax, reloc.WS2_32.dll_accept
jns 0x49070e
dec eax
or eax, 0xfffffffe
inc eax
neg eax
sbb al, al
push 0xe
add eax, 2
mov ecx, ebx
mov byte [ebp - 0x30], al
mov eax, dword [ebx]
call dword [eax + 0x44]
mov edx, dword [ebx]
mov edi, eax
push 0xf
mov ecx, ebx
mov dword [ebp - 0x24], edi
call dword [edx + 0x44]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x49074a
mov ecx, dword [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00499820
sub esp, 0x40
mov ecx, 0x10
lea esi, [ebp - 0x68]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
push edx
mov ecx, esi
call fcn.004992c0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x54]
push eax
push ecx
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x64]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00491520
mov eax, dword [ebp - 0x54]
cmp eax, 0xc9
jle 0x4907a4
mov edx, dword [ebp - 0x68]
push eax
push edx
mov ecx, esi
call fcn.0049b980
mov esi, dword [ebp + 8]
mov eax, dword [ebx]
inc esi
mov ecx, ebx
mov dword [ebp + 8], esi
call dword [eax + 0x64]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x60]
cmp esi, eax
mov esi, dword [ebp - 0x28]
jb 0x49064f
mov edi, dword [ebp - 0x10]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ecx, esi
call fcn.00497f90
mov edx, dword [esi]
mov ecx, esi
mov byte [ebp + 0xb], al
call dword [edx + 4]
mov al, byte [ebp + 0xb]
mov ebx, 1
test al, al
je 0x4907fe
mov ecx, dword [esi + 0x68]
push ebx
call fcn.0058ed00
push eax
mov ecx, esi
call fcn.00498060
mov ebx, eax
mov ecx, dword [esi + 0x28]
test ecx, ecx
jne 0x49082a
push 0xf1
push 0x79b9c4
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
jmp 0x490831
mov eax, dword [ecx]
push 0x15
call dword [eax + 8]
push eax
push ebx
mov ecx, esi
call fcn.0049a730
test al, al
je 0x490851
mov ecx, dword [esi + 0x28]
push ebx
push 0x15
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x2c]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.00499300
mov esi, dword [esi + 0x64]
test esi, esi
je 0x49086a
mov ecx, esi
call fcn.00659da0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
mov byte [ebp - 4], 1
sar eax, 6
je 0x490998
shl eax, 6
cmp eax, 0x80
jbe 0x490897
push ecx
call fcn.00702a90
add esp, 4
jmp 0x490998
add eax, 7
push 1
shr eax, 3
push 0x7e5430
mov dword [ebp - 0x24], ecx
lea edx, [eax*4 + 0x7e53ec]
mov dword [ebp - 0x20], edx
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
je 0x490982
mov ebx, dword [0x793c5c]
mov eax, dword [0x7e5434]
mov dword [ebp + 8], 0x11
xor esi, esi
test ebx, ebx
jbe 0x490933
mov edi, eax
shr edi, 1
cmp esi, edi
jb 0x4908fb
mov eax, dword [0x7e5430]
test eax, eax
jne 0x4908fb
push 1
push 0x7e5430
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
je 0x49096f
jmp 0x49092b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
imul eax, ecx
mov dword [ebp + 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
imul edx, eax
mov dword [ebp + 8], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
imul ecx, edx
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
imul eax, ecx
mov dword [ebp + 8], eax
inc esi
cmp esi, ebx
jb 0x4908db
mov edi, dword [ebp - 0x10]
mov dword [0x793c5c], 0x1e
mov ebx, 6
cmp ebx, 0x1b
mov esi, ebx
jle 0x49094e
mov esi, 0x1b
push 1
push 0x7e5430
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
je 0x490982
cmp esi, 0x14
jg 0x4909bf
push 0
call dword [sym.imp.kernel32.dll_Sleep]
inc ebx
jmp 0x490942
mov edi, dword [ebp - 0x10]
mov dword [0x7e5434], esi
mov dword [0x793c5c], 0x3e8
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], edx
mov dword [eax], ecx
mov dword [0x7e5430], 0
test edi, edi
mov dword [ebp - 4], 0xffffffff
je 0x4909aa
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 4
lea ecx, [esi - 0x14]
mov edx, 1
shl edx, cl
push edx
call dword [sym.imp.kernel32.dll_Sleep]
inc ebx
jmp 0x490942