Function at 0x405916
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push dword [ebp + 0x10]
call fcn.0040181c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40594c
mov eax, 0
jmp 0x405ce0
cmp dword [ebp + 0x14], 1
jne 0x4059f6
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x410330
call fcn.0040f22f
add esp, 0x10
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x410330
call fcn.0040f22f
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x4901df
push dword [ebp - 0x10]
push 0x490685
push dword [ebp - 0xc]
push str.SELECT_count___FROM_wyuser_WHERE_pid
mov ecx, 5
call fcn.004010a8
add esp, 0x14
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4059c9
push ebx
call fcn.0040f229
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4059d9
push ebx
call fcn.0040f229
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4059ed
push ebx
call fcn.0040f229
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x405c61
cmp dword [ebp + 0x14], 2
jne 0x405aff
push 0x490179
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call fcn.0040156d
add esp, 8
cmp eax, 0
jne 0x405a55
push 0
push 0
push 0
push 0x80000301
push 0
push 0x30
push getpeername
push 0
push 0x4906b9
push 3
mov ebx, 0x410820
call fcn.0040f22f
add esp, 0x28
mov eax, 0
jmp 0x405ce0
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x410330
call fcn.0040f22f
add esp, 0x10
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x410330
call fcn.0040f22f
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x490220
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push str._and__user__like___
push dword [ebp - 0x10]
push 0x490685
push dword [ebp - 0xc]
push str.SELECT_count___FROM_wyuser_WHERE_pid
mov ecx, 7
call fcn.004010a8
add esp, 0x1c
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405ad2
push ebx
call fcn.0040f229
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x405ae2
push ebx
call fcn.0040f229
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405af6
push ebx
call fcn.0040f229
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x405c61
cmp dword [ebp + 0x14], 3
jne 0x405c61
push 0x490179
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call fcn.0040156d
add esp, 8
cmp eax, 0
jne 0x405b5e
push 0
push 0
push 0
push 0x80000301
push 0
push 0x30
push getpeername
push 0
push 0x4906b9
push 3
mov ebx, 0x410820
call fcn.0040f22f
add esp, 0x28
mov eax, 0
jmp 0x405ce0
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x410330
call fcn.0040f22f
add esp, 0x10
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x410330
call fcn.0040f22f
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x4901df
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push str._and_cardid
push dword [ebp - 0x10]
push 0x490685
push dword [ebp - 0xc]
push str.SELECT_count___FROM_wycard_WHERE_pid
mov ecx, 7
call fcn.004010a8
add esp, 0x1c
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405bdb
push ebx
call fcn.0040f229
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x405beb
push ebx
call fcn.0040f229
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405bff
push ebx
call fcn.0040f229
add esp, 4
pop eax
mov dword [ebp - 4], eax
push getpeername
push 0
lea eax, [ebp - 8]
push eax
push getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x405c21
mov eax, 0x490179
push eax
push 0x80000301
push 0
push 0xb1
push 3
mov eax, 1
mov ebx, 0x45ee00
call fcn.0040f23b
add esp, 0x28
test eax, eax
je 0x405c57
mov eax, 1
jmp 0x405ce0
mov eax, 0
jmp 0x405ce0
push getpeername
push 0
lea eax, [ebp - 8]
push eax
push getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x405c7f
mov eax, 0x490179
push eax
push 0x80000301
push 0
push 0xb1
push 3
mov eax, 1
mov ebx, 0x45ee00
call fcn.0040f23b
add esp, 0x28
test eax, eax
je 0x405cd6
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x405cbe
mov eax, 0x490179
push eax
push 1
mov ebx, 0x40f9c0
call fcn.0040f22f
add esp, 0x10
jmp 0x405ce0
mov eax, 0
jmp 0x405ce0
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405cf1
push ebx
call fcn.0040f229
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405d01
push ebx
call fcn.0040f229
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10