Function at 0x402010
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x10]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 4]
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
mov esi, dword [edi]
mov dword [ebp - 8], esi
cmp esi, edi
je 0x402235
nop
mov eax, dword [ebp + 8]
lea ebx, [esi + 0x28]
mov ecx, ebx
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x402068
test dl, dl
je 0x402064
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x402068
add ecx, 2
add eax, 2
test dl, dl
jne 0x402048
xor eax, eax
jmp 0x40206d
sbb eax, eax
or eax, 1
test eax, eax
je 0x402092
lea ecx, [ebp - 8]
call fcn.004027c0
mov esi, dword [ebp - 8]
cmp esi, edi
jne 0x402040
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx eax, word [esi + 0x46]
lea ecx, [esi + 0x33]
push eax
push ecx
push ebx
push str._AccountInfo__Disconnected_and_blocked_all__Account:__s__IpAddress:__s__GameServerCode:__d_
push 1
push 0x410110
call fcn.00406f10
push ebx
push str.UPDATE_MEMB_INFO_SET_BLOC_CODE1_BLOC_EXPIRE_getdate__9999__WHERE_MEMB___ID_s
push 0x410540
call fcn.00407810
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
add esp, 0x24
push dword [0x41054c]
call edi
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x41054c]
call ebx
lea eax, [esi + 0x7c]
push eax
push str.SELECT_HardwareID_FROM_BlockHardwareID_WHERE_HardwareID_s
push 0x410540
call fcn.00407810
add esp, 0xc
test al, al
je 0x40210a
push dword [0x41054c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x402144
push dword [0x41054c]
call edi
push 2
push dword [0x41054c]
call ebx
lea eax, [esi + 0x7c]
push eax
push str.INSERT_INTO_BlockHardwareID__HardwareID__VALUES___s_
push 0x410540
call fcn.00407810
add esp, 0xc
push dword [0x41054c]
call edi
push 2
push dword [0x41054c]
call ebx
lea eax, [esi + 0x33]
push eax
push str.SELECT_IP_FROM_BlockIP_WHERE_IP_s
push 0x410540
call fcn.00407810
add esp, 0xc
test al, al
je 0x402170
push dword [0x41054c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x4021aa
push dword [0x41054c]
call edi
push 2
push dword [0x41054c]
call ebx
lea eax, [esi + 0x33]
push eax
push str.INSERT_INTO_BlockIP__IP__VALUES___s_
push 0x410540
call fcn.00407810
add esp, 0xc
push dword [0x41054c]
call edi
push 2
push dword [0x41054c]
call ebx
lea eax, [esi + 0x28]
push eax
push str.EXEC_WZ_DISCONNECT_MEMB__s
push 0x410540
call fcn.00407810
add esp, 0xc
push dword [0x41054c]
call edi
push 2
push dword [0x41054c]
call ebx
mov cx, word [esi + 0x46]
call fcn.004097e0
mov edx, eax
test edx, edx
je 0x402228
movzx eax, word [esi + 0x44]
xorps xmm0, xmm0
movups xmmword [ebp - 0x23], xmm0
mov word [ebp - 0x20], ax
movzx eax, word [esi + 0x30]
movq xmm0, qword [esi + 0x28]
mov word [ebp - 0x16], ax
mov al, byte [esi + 0x32]
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x24]
push 0x12
push eax
push dword [edx + 4]
mov byte [ebp - 0x13], 0
mov word [ebp - 0x24], 0x12c1
mov byte [ebp - 0x22], 2
movq qword [ebp - 0x1e], xmm0
mov byte [ebp - 0x13], 0
call fcn.00408a80
mov ecx, dword [ebp - 0xc]
lea eax, [ebp + 8]
push esi
push eax
call fcn.00402820
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4