Function at 0x491023
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
push dword [ebp - 8]
mov eax, 0x6c88ba
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401a1d
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x491060
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0x2710
jne 0x4910fb
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x24
mov dword [ebp - 0x10], ebx
push 0x80000301
push 0
push 9
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x4910a6
mov eax, 0x6b4435
push eax
push 2
mov ebx, 0x5dd310
call fcn.005dc82c
add esp, 0x1c
mov dword [ebp - 0x14], eax
push str._chatroom
push dword [ebp - 0x14]
call fcn.00402bee
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4910ea
push ebx
call fcn.005dc820
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x4910fb
mov eax, 1
jmp 0x491100
mov eax, 0
test eax, eax
je 0x491112
mov eax, 1
jmp 0x491b05
push 0x84b7a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x24
mov dword [ebp - 8], ebx
push 0x80000301
push 0
push 9
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
test eax, eax
jne 0x49114d
mov eax, 0x6b4435
push eax
push 2
mov ebx, 0x5dd310
call fcn.005dc82c
add esp, 0x1c
mov dword [ebp - 0xc], eax
push str._chatroom
push dword [ebp - 0xc]
call fcn.00402bee
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x491191
push ebx
call fcn.005dc820
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x491768
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x24
mov dword [ebp - 8], ebx
push 0x6b4d58
push dword [0x84b794]
push str._AND_g_monitor__
mov ebx, dword [ebp - 8]
push dword [ebx]
push str.g_wxid
mov ecx, 5
call fcn.0040108c
add esp, 0x14
mov dword [ebp - 0xc], eax
push 1
lea eax, [ebp - 0xc]
push eax
mov eax, str.wxgroup
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x84b7a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c]
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x491204
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x491214
push ebx
call fcn.005dc820
add esp, 4
cmp dword [ebp - 0x14], 0
jne 0x491237
push 0x84b7a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, 0
jmp 0x491b05
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x24
mov dword [ebp - 0xc], ebx
push 0x6b4d58
push dword [0x84b794]
push 0x6b5a60
mov ebx, dword [ebp - 0xc]
push dword [ebx]
push str._AND_g_wxid
mov ebx, dword [ebp - 8]
push dword [ebx]
push str.SELECT_permissions_FROM_group_member_WHERE_wxid
mov ecx, 7
call fcn.0040108c
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x84b7a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x24]
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x491354
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x491364
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x491374
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x491384
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x491394
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4913a4
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4913b4
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4913c4
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4913d4
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4913e4
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4913f4
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x491404
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x491414
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x491424
push ebx
call fcn.005dc820
add esp, 4
cmp dword [ebp - 0x48], 0
jne 0x4914d3
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x24
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x20
mov dword [ebp - 0x10], ebx
push 0x6b67f7
push dword [0x84b794]
push 0x6c8976
mov ebx, dword [ebp - 0x10]
push dword [ebx]
push 0x6c89af
mov ebx, dword [ebp - 0xc]
push dword [ebx]
push 0x6b67fa
mov ebx, dword [ebp - 8]
push dword [ebx]
push str.INSERT_INTO_group_member_VALUES__
mov ecx, 9
call fcn.0040108c
add esp, 0x24
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x84b7a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x18]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4914b0
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x24
mov dword [ebp - 0xc], ebx
push 1
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.00491b1d
push 0x6c89d9
push dword [ebp - 4]
call fcn.00402bee
add esp, 8
cmp eax, 0
jne 0x49158e
push 0x84b7a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x20
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
push 0x6c89de
mov ebx, dword [ebp - 0xc]
push dword [ebx]
push 0x6c89e6
mov ebx, dword [ebp - 8]
push dword [ebx]
push 0x6c89f0
mov ecx, 6
call fcn.0040108c
add esp, 0x18
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, 0x6b53de
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.00402c8b
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x491574
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x491584
push ebx
call fcn.005dc820
add esp, 4
mov eax, 0
jmp 0x491b05
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
push 0x6b4d58
push dword [0x84b794]
push 0x6b5a60
mov ebx, dword [ebp - 8]
push dword [ebx]
push str.SELECT_type_FROM_friend_WHERE_wxid
mov ecx, 5
call fcn.0040108c
add esp, 0x14
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x84b7a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x24]
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x491693
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4916a3
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4916b3
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4916c3
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4916d3
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4916e3
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4916f3
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x491703
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x491713
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x491723
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x491733
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x491743
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x491753
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x491763
push ebx
call fcn.005dc820
add esp, 4
jmp 0x491a55
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x24
mov dword [ebp - 8], ebx
push 0x6b4d58
push dword [0x84b794]
push 0x6b5a60
mov ebx, dword [ebp - 8]
push dword [ebx]
push str.SELECT_type_FROM_friend_WHERE_wxid
mov ecx, 5
call fcn.0040108c
add esp, 0x14
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x84b7a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x24]
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x491870
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x491880
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x491890
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4918a0
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4918b0
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4918c0
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4918d0
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4918e0
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4918f0
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x491900
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x491910
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x491920
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x491930
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x491940
push ebx
call fcn.005dc820
add esp, 4
cmp dword [ebp - 0x44], 0
jne 0x491a55
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x20
mov dword [ebp - 0xc], ebx
mov eax, str._HH:mm:ss
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, str.yyyy_MM_dd
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.00403385
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4919a6
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4919b6
push ebx
call fcn.005dc820
add esp, 4
push 0x6b67f7
push dword [0x84b794]
push 0x6c8a44
push dword [ebp - 0x20]
push 0x6c8a91
mov ebx, dword [ebp - 0xc]
push dword [ebx]
push 0x6b67fa
mov ebx, dword [ebp - 8]
push dword [ebx]
push str.INSERT_INTO_friend_VALUES__
mov ecx, 9
call fcn.0040108c
add esp, 0x24
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x491a02
push ebx
call fcn.005dc820
add esp, 4
lea eax, [ebp - 0x24]
push eax
push 0x84b7a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x18]
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x491a25
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call fcn.00491b1d
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x491a55
push ebx
call fcn.005dc820
add esp, 4
push 0x84b7a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
push 0x6c89d9
push dword [ebp - 4]
call fcn.00402bee
add esp, 8
cmp eax, 0
jne 0x491afb
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x24
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x28
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
push dword [ebx]
push 0x6c89e6
mov ebx, dword [ebp - 8]
push dword [ebx]
push 0x6c8ac4
mov ecx, 4
call fcn.0040108c
add esp, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, 0x6b53de
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 2
call fcn.00402c8b
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x491ae1
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x491af1
push ebx
call fcn.005dc820
add esp, 4
mov eax, 0
jmp 0x491b05
mov eax, 1
jmp 0x491b05
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x491b16
push ebx
call fcn.005dc820
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4