Function at 0x480d16
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18c
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
call fcn.0043f37c
mov ebx, eax
lea eax, [ebp - 0x170]
mov dword [esp], eax
call fcn.0066643c
mov dword [esp + 4], str.SELECT__FROM__bans__WHERE
lea eax, [ebp - 0x168]
mov dword [esp], eax
call fcn.0076107c
test edi, edi
je 0x480d89
mov dword [esp + 4], str._value__
lea eax, [ebp - 0x168]
mov dword [esp], eax
call fcn.0076107c
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00701d98
mov dword [esp + 4], str._AND
mov dword [esp], eax
call fcn.0076107c
test esi, esi
je 0x480dbf
mov dword [esp + 4], str._param__
lea eax, [ebp - 0x168]
mov dword [esp], eax
call fcn.0076107c
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00701d98
mov dword [esp + 4], str._AND
mov dword [esp], eax
call fcn.0076107c
mov dword [esp], 0
call sub.msvcrt.dll_time
mov edi, eax
mov esi, dword [ebp + 0x10]
mov dword [esp + 4], str._type__
lea eax, [ebp - 0x168]
mov dword [esp], eax
call fcn.0076107c
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00702728
mov dword [esp + 4], str._AND__active___1_AND___expires___
mov dword [esp], eax
call fcn.0076107c
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00701bc0
mov dword [esp + 4], str._OR__expires____0_
mov dword [esp], eax
call fcn.0076107c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x17c], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov eax, dword [ebx]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x88]
lea edx, [ebp - 0x164]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.006de294
sub esp, 4
lea eax, [ebp - 0x88]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov ebx, eax
mov esi, dword [ebp - 0x88]
sub esi, 0xc
mov edi, 0x7bf7a4
cmp esi, edi
je 0x480ee7
cmp dword [0x8e6f60], 0
je 0x480ea2
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x180], eax
jmp 0x480eb1
mov edx, dword [esi + 8]
mov dword [ebp - 0x180], edx
mov eax, edx
dec eax
mov dword [esi + 8], eax
cmp dword [ebp - 0x180], 0
jg 0x480ee7
lea eax, [ebp - 0x26]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x480ee7
test ebx, ebx
je 0x481936
mov dword [ebp - 0x90], 0x7bf7b0
mov dword [ebp - 0x8c], 0x7bf7b0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0xb
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
mov eax, dword [ebx]
mov esi, dword [eax]
lea eax, [ebp - 0x7d]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d4168
lea edx, [ebp - 0x84]
mov dword [esp], edx
call fcn.007041ec
lea eax, [ebp - 0x84]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov dword [ebp - 0xac], eax
mov esi, dword [ebp - 0x84]
sub esi, 0xc
cmp edi, esi
je 0x481010
cmp dword [0x8e6f60], 0
je 0x480fc4
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x180], eax
jmp 0x480fd3
mov edx, dword [esi + 8]
mov dword [ebp - 0x180], edx
mov eax, edx
dec eax
mov dword [esi + 8], eax
cmp dword [ebp - 0x180], 0
jg 0x481010
lea eax, [ebp - 0x25]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x481010
mov eax, dword [ebx]
mov esi, dword [eax]
lea edx, [ebp - 0x75]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x7d416b
lea eax, [ebp - 0x7c]
mov dword [esp], eax
call fcn.007041ec
lea edx, [ebp - 0x7c]
mov dword [esp + 4], edx
mov dword [esp], ebx
call esi
mov dword [ebp - 0xb4], eax
mov esi, dword [ebp - 0x7c]
sub esi, 0xc
cmp edi, esi
je 0x4810b5
cmp dword [0x8e6f60], 0
je 0x48106e
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x180], eax
jmp 0x48107b
mov eax, dword [esi + 8]
mov dword [ebp - 0x180], eax
dec eax
mov dword [esi + 8], eax
cmp dword [ebp - 0x180], 0
jg 0x4810b5
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x4810b5
mov eax, dword [ebx]
mov esi, dword [eax]
lea eax, [ebp - 0x6d]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d4170
lea eax, [ebp - 0x74]
mov dword [esp], eax
call fcn.007041ec
lea eax, [ebp - 0x74]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov dword [ebp - 0xa8], eax
mov esi, dword [ebp - 0x74]
sub esi, 0xc
cmp edi, esi
je 0x48115c
cmp dword [0x8e6f60], 0
je 0x481113
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x180], eax
jmp 0x481122
mov edx, dword [esi + 8]
mov dword [ebp - 0x180], edx
mov eax, edx
dec eax
mov dword [esi + 8], eax
cmp dword [ebp - 0x180], 0
jg 0x48115c
lea eax, [ebp - 0x23]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x48115c
mov eax, dword [ebx]
mov esi, dword [eax]
lea eax, [ebp - 0x65]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d4176
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call fcn.007041ec
lea eax, [ebp - 0x6c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov dword [ebp - 0xa4], eax
mov esi, dword [ebp - 0x6c]
sub esi, 0xc
cmp edi, esi
je 0x481201
cmp dword [0x8e6f60], 0
je 0x4811ba
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x180], eax
jmp 0x4811c7
mov eax, dword [esi + 8]
mov dword [ebp - 0x180], eax
dec eax
mov dword [esi + 8], eax
cmp dword [ebp - 0x180], 0
jg 0x481201
lea eax, [ebp - 0x22]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x481201
mov eax, dword [ebx]
mov esi, dword [eax + 4]
lea eax, [ebp - 0x5d]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d417c
lea eax, [ebp - 0x64]
mov dword [esp], eax
call fcn.007041ec
lea eax, [ebp - 0x64]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov dword [ebp - 0x94], eax
mov esi, dword [ebp - 0x64]
sub esi, 0xc
cmp edi, esi
je 0x4812a9
cmp dword [0x8e6f60], 0
je 0x481260
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x180], eax
jmp 0x48126f
mov edx, dword [esi + 8]
mov dword [ebp - 0x180], edx
mov eax, edx
dec eax
mov dword [esi + 8], eax
cmp dword [ebp - 0x180], 0
jg 0x4812a9
lea eax, [ebp - 0x21]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x4812a9
mov eax, dword [ebx]
mov esi, dword [eax + 4]
lea eax, [ebp - 0x55]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d4184
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call fcn.007041ec
lea eax, [ebp - 0x5c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov dword [ebp - 0xa0], eax
mov esi, dword [ebp - 0x5c]
sub esi, 0xc
cmp edi, esi
je 0x48134f
cmp dword [0x8e6f60], 0
je 0x481308
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x180], eax
jmp 0x481315
mov eax, dword [esi + 8]
mov dword [ebp - 0x180], eax
dec eax
mov dword [esi + 8], eax
cmp dword [ebp - 0x180], 0
jg 0x48134f
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x48134f
mov eax, dword [ebx]
mov esi, dword [eax]
lea eax, [ebp - 0x4d]
mov dword [esp + 8], eax
mov dword [esp + 4], str.admin_id
lea eax, [ebp - 0x54]
mov dword [esp], eax
call fcn.007041ec
lea eax, [ebp - 0x54]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov dword [ebp - 0x9c], eax
mov esi, dword [ebp - 0x54]
sub esi, 0xc
cmp edi, esi
je 0x4813f6
cmp dword [0x8e6f60], 0
je 0x4813ad
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x180], eax
jmp 0x4813bc
mov edx, dword [esi + 8]
mov dword [ebp - 0x180], edx
mov eax, edx
dec eax
mov dword [esi + 8], eax
cmp dword [ebp - 0x180], 0
jg 0x4813f6
lea eax, [ebp - 0x1f]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x4813f6
mov eax, dword [ebx]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x41]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d4193
lea eax, [ebp - 0x48]
mov dword [esp], eax
call fcn.007041ec
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call esi
sub esp, 4
lea eax, [ebp - 0x4c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x90]
mov dword [esp], eax
call fcn.00703510
mov esi, dword [ebp - 0x4c]
sub esi, 0xc
cmp edi, esi
je 0x4814ba
cmp dword [0x8e6f60], 0
je 0x48146e
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x180], eax
jmp 0x48147b
mov eax, dword [esi + 8]
mov dword [ebp - 0x180], eax
dec eax
mov dword [esi + 8], eax
cmp dword [ebp - 0x180], 0
jg 0x4814ba
lea eax, [ebp - 0x1e]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x4814ba
mov esi, dword [ebp - 0x48]
sub esi, 0xc
cmp edi, esi
je 0x48151f
cmp dword [0x8e6f60], 0
je 0x4814e8
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x180], eax
jmp 0x4814f7
mov edx, dword [esi + 8]
mov dword [ebp - 0x180], edx
mov eax, edx
dec eax
mov dword [esi + 8], eax
cmp dword [ebp - 0x180], 0
jg 0x48151f
lea eax, [ebp - 0x1d]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x48151f
mov eax, dword [ebx]
mov esi, dword [eax]
lea eax, [ebp - 0x39]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d419b
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.007041ec
lea eax, [ebp - 0x40]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov dword [ebp - 0x98], eax
mov esi, dword [ebp - 0x40]
sub esi, 0xc
cmp edi, esi
je 0x4815c4
cmp dword [0x8e6f60], 0
je 0x48157d
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x180], eax
jmp 0x48158a
mov eax, dword [esi + 8]
mov dword [ebp - 0x180], eax
dec eax
mov dword [esi + 8], eax
cmp dword [ebp - 0x180], 0
jg 0x4815c4
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x4815c4
mov eax, dword [ebx]
mov esi, dword [eax]
lea eax, [ebp - 0x31]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d41a2
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.007041ec
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov dword [ebp - 0xb0], eax
mov esi, dword [ebp - 0x38]
sub esi, 0xc
cmp edi, esi
je 0x48166b
cmp dword [0x8e6f60], 0
je 0x481622
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x180], eax
jmp 0x481631
mov edx, dword [esi + 8]
mov dword [ebp - 0x180], edx
mov eax, edx
dec eax
mov dword [esi + 8], eax
cmp dword [ebp - 0x180], 0
jg 0x48166b
lea eax, [ebp - 0x1b]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x48166b
mov eax, dword [ebx]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x27]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d41a9
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.007041ec
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call esi
sub esp, 4
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
lea eax, [ebp - 0x8c]
mov dword [esp], eax
call fcn.00703510
mov esi, dword [ebp - 0x30]
sub esi, 0xc
cmp edi, esi
je 0x48172f
cmp dword [0x8e6f60], 0
je 0x4816e3
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x180], eax
jmp 0x4816f0
mov eax, dword [esi + 8]
mov dword [ebp - 0x180], eax
dec eax
mov dword [esi + 8], eax
cmp dword [ebp - 0x180], 0
jg 0x48172f
lea eax, [ebp - 0x1a]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x48172f
mov esi, dword [ebp - 0x2c]
sub esi, 0xc
cmp edi, esi
je 0x481794
cmp dword [0x8e6f60], 0
je 0x48175d
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x180], eax
jmp 0x48176c
mov edx, dword [esi + 8]
mov dword [ebp - 0x180], edx
mov eax, edx
dec eax
mov dword [esi + 8], eax
cmp dword [ebp - 0x180], 0
jg 0x481794
lea eax, [ebp - 0x19]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x481794
mov eax, dword [ebp - 0x17c]
mov esi, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x481852
test esi, esi
je 0x481846
mov eax, dword [ebp - 0xb4]
mov dword [esi], eax
mov eax, dword [ebp - 0xb0]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xac]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xa8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0xa4]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0xa0]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x9c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x98]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x94]
mov dword [esi + 0x20], eax
lea edx, [esi + 0x24]
mov dword [ebp - 0x180], edx
lea eax, [ebp - 0x90]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00704290
lea eax, [ebp - 0x8c]
mov dword [esp + 4], eax
add esi, 0x28
mov dword [esp], esi
call fcn.00704290
jmp 0x481846
mov edx, dword [ebp - 0x17c]
add dword [edx + 4], 0x2c
jmp 0x48186e
lea eax, [ebp - 0xb4]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x17c]
mov dword [esp], eax
call fcn.0072ea7c
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 0x14]
test al, al
jne 0x480f5d
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 0x10]
jmp 0x48189a
lea eax, [ebp - 0x8c]
mov dword [esp], eax
call fcn.0070479c
jmp 0x4818bc
lea eax, [ebp - 0x90]
mov dword [esp], eax
call fcn.0070479c
jmp 0x481936
lea eax, [ebp - 0x170]
mov dword [esp], eax
call fcn.006668d4
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret 4