Function at 0x4600d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push esi
push edi
mov edi, edx
mov dword [ebp - 0x20], ecx
mov al, byte [edi]
inc edi
movzx esi, al
lea eax, [esi + 1]
push eax
call fcn.004622fd
push esi
push edi
push eax
mov dword [ebp - 0x14], eax
call fcn.004760e0
mov eax, dword [ebp - 0x14]
add edi, esi
mov byte [eax + esi], 0
mov cl, byte [edi]
inc edi
movzx esi, cl
lea eax, [esi + 1]
push eax
call fcn.004622fd
push esi
push edi
push eax
mov dword [ebp - 0x18], eax
call fcn.004760e0
mov eax, dword [ebp - 0x18]
xor edi, edi
push edi
mov dword [ebp - 0x10], 0
mov byte [eax + esi], 0
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push str.SELECT_Uin__Password__FROM_User__WHERE_Name__
push dword [0x4d1308]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
mov esi, dword [ebp - 0x14]
add esp, 0x34
test eax, eax
jne 0x4601ad
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460170
push 0xffffffffffffffff
sub ecx, edx
push ecx
push esi
push 1
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_text]
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x18
cmp eax, 0x64
jne 0x4601ad
push 0
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 8
lea edi, [eax + 0x2710]
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
test edi, edi
je 0x46046e
xor ecx, ecx
mov dword [ebp - 0x10], 0
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push eax
push 0xffffffffffffffff
push str.SELECT_IsBan__FROM_User__WHERE_Name__
push dword [0x4d1308]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x46022b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4601f1
push 0xffffffffffffffff
sub ecx, edx
push ecx
push esi
push 1
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_text]
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x18
cmp eax, 0x64
jne 0x46022b
push 0
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 8
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov eax, dword [ebp - 0x14]
add esp, 4
test eax, eax
jle 0x460301
push 1
lea ecx, [ebp - 0xf0]
call fcn.00407e60
mov dword [ebp - 4], 0
lea eax, [ebp - 0xe0]
push 0x4bee58
push eax
call fcn.0040ae50
mov ecx, dword [ebp - 0x14]
add esp, 8
push 0x4bee44
push ecx
mov ecx, eax
call fcn.00407fb0
push eax
call fcn.0040ae50
add esp, 8
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0xf0]
push eax
call fcn.00407d60
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0xf
mov ecx, dword [ebp - 0x20]
cmova eax, dword [ebp - 0x3c]
xor edx, edx
push 1
push eax
call fcn.00460030
add esp, 8
push esi
push 0x4bee70
push 0x4d0258
call fcn.0040ae50
add esp, 8
push eax
call fcn.0040ae50
push eax
call fcn.00412d50
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004099e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00404c50
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
jns 0x4603af
push 1
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [ebp - 0x13c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp - 0x20]
mov edx, 1
movups xmm0, xmmword [0x4bee90]
mov dword [ebp - 0x13a], eax
mov eax, dword [0x4beea8]
push 1
mov dword [ebp - 0x11d], eax
movzx eax, word [ecx + 0x10]
push 1
push eax
movzx eax, word [ecx + 0x36]
push 3
push eax
movups xmmword [ebp - 0x135], xmm0
lea eax, [ebp - 0x13c]
mov byte [ebp - 0x136], 0x1c
movq xmm0, qword [0x4beea0]
push 0x23
push eax
movq qword [ebp - 0x125], xmm0
call fcn.00437370
add esp, 0x1c
push esi
push 0x4beeb0
push 0x4d0258
call fcn.0040ae50
add esp, 8
push eax
call fcn.0040ae50
push eax
call fcn.00412d50
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x18]
mov ecx, edi
call fcn.00412220
push dword [ebp - 0x18]
test eax, eax
jne 0x4603d7
push 0x4beeec
push esi
mov dword [ebp - 0x1c], 0x4beed4
push 0x4beef8
jmp 0x460483
push 0x4bef1c
push esi
push 0x4bef28
push 0x4d0258
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], str.success
call fcn.0040ae50
add esp, 8
push eax
call fcn.0040ae50
add esp, 8
push eax
call fcn.0040ae50
add esp, 8
push eax
call fcn.0040ae50
push eax
call fcn.00412d50
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0xffffffffffffffff
push str.UPDATE_User_SET_LastLoginTime__datetime_now__localtime__WHERE_Uin____
push dword [0x4d1308]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x20
test eax, eax
jne 0x460460
lea eax, [edi - 0x2710]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
jmp 0x4604b8
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x4bef94
push 0x4beeec
push esi
push 0x4befb8
push 0x4d0258
mov dword [ebp - 0x14], 1
call fcn.0040ae50
add esp, 8
push eax
call fcn.0040ae50
add esp, 8
push eax
call fcn.0040ae50
add esp, 8
push eax
call fcn.0040ae50
push eax
call fcn.00412d50
add esp, 0xc
push esi
call fcn.00462046
push dword [ebp - 0x18]
call fcn.00462046
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov edx, edi
push dword [ebp - 0x1c]
call fcn.00460030
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret