Function at 0x4069b0
Capabilities:
Hash data with md5
Reference sql statements

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cde0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x160
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x164], edx
mov esi, ecx
mov dword [ebp - 0x168], esi
movzx eax, word [esi + 4]
lea edi, [esi + 6]
movq xmm0, qword [edi]
mov word [ebp - 0x7c], ax
movzx eax, word [edi + 8]
mov word [ebp - 0x72], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x70], al
xor eax, eax
mov word [ebp - 0x80], 0x24c1
mov byte [ebp - 0x7e], 1
movq qword [ebp - 0x7a], xmm0
mov byte [ebp - 0x61], 1
mov cl, byte [edi + eax]
cmp cl, 0x20
je 0x40722e
cmp cl, 0x22
je 0x40722e
cmp cl, 0x27
je 0x40722e
inc eax
cmp eax, 0xb
jl 0x406a31
mov esi, dword [0x43cb60]
cmp esi, dword [0x43cb64]
je 0x406a80
push esi
push edi
call fcn.0040dac0
add esp, 8
test eax, eax
jne 0x406b3f
add esi, 0x20
cmp esi, dword [0x43cb64]
jne 0x406a63
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x170], esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0xd
mov dword [ecx + 0x14], 0xf
movq xmm0, qword [str._a_zA_Z0_9___]
movq qword [ecx], xmm0
mov eax, dword [0x4372a4]
mov dword [ecx + 8], eax
mov al, byte [0x4372a8]
mov byte [ecx + 0xc], al
mov byte [ecx + 0xd], 0
sub esp, 0x18
mov dword [ebp - 4], 0
mov edx, esp
mov ecx, edi
xorps xmm0, xmm0
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
lea esi, [ecx + 1]
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406ae4
sub ecx, esi
push ecx
push edi
mov ecx, edx
call fcn.00402d40
push 0
mov dword [ebp - 4], 0xffffffff
call fcn.00405250
test al, al
jne 0x406b6d
cmp dword [0x509ce8], 1
jne 0x406b6d
movzx eax, byte [ebp - 0x7f]
mov ecx, dword [ebp - 0x164]
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 0x61], 2
push eax
push ecx
call fcn.004097d0
mov eax, dword [ebp - 0x168]
push edi
add eax, 0x1c
push eax
push str.__s__account__s_symbol_block
jmp 0x407248
movzx eax, byte [ebp - 0x7f]
mov ecx, dword [ebp - 0x164]
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 0x61], 2
push eax
push ecx
call fcn.004097d0
mov eax, dword [ebp - 0x168]
push edi
add eax, 0x1c
push eax
push str.__s__account__s_bad_syntax
jmp 0x407248
push edi
lea eax, [ebp - 0xc0]
push eax
call fcn.004039e0
test al, al
je 0x406bf5
movzx eax, byte [ebp - 0x7f]
mov ecx, dword [ebp - 0x164]
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 0x61], 3
push eax
push ecx
call fcn.004097d0
mov ecx, dword [ebp - 0xa2]
call fcn.0040a4f0
mov edx, eax
test edx, edx
je 0x407252
mov ax, word [ebp - 0xb8]
mov cx, word [ebp - 0xa4]
movq xmm0, qword [ebp - 0xc0]
mov word [ebp - 0x1a], ax
mov al, byte [ebp - 0xb6]
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x28]
push 0x12
push eax
push dword [edx + 4]
mov word [ebp - 0x28], 0x12c1
mov byte [ebp - 0x26], 0x30
mov word [ebp - 0x24], cx
movq qword [ebp - 0x22], xmm0
call fcn.004097d0
jmp 0x407252
push 0x43cb30
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x43cb4c]
push 0x43cb30
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0x61a80
jl 0x406c37
movzx eax, byte [ebp - 0x7f]
mov ecx, dword [ebp - 0x164]
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 0x61], 4
push eax
push ecx
call fcn.004097d0
jmp 0x407252
cmp dword [0x509cec], 0
push edi
push str.SELECT_memb___id__memb__pwd_FROM_MEMB_INFO_WHERE_memb___id_s
push 0x43cfa0
jne 0x406db0
call fcn.00408290
add esp, 0xc
test al, al
je 0x406d79
push dword [0x43cfac]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x406d79
push 0xb
lea eax, [ebp - 0x40]
mov word [ebp - 0x38], 0
push eax
xorps xmm0, xmm0
mov byte [ebp - 0x36], 0
push str.memb__pwd
movq qword [ebp - 0x40], xmm0
call fcn.004085a0
push 0xb
lea eax, [ebp - 0x34]
mov word [ebp - 0x2c], 0
push eax
xorps xmm0, xmm0
mov byte [ebp - 0x2a], 0
push str.memb___id
movq qword [ebp - 0x34], xmm0
call fcn.004085a0
lea ecx, [ebp - 0x34]
mov eax, edi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406ce0
test dl, dl
je 0x406cdc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406ce0
add eax, 2
add ecx, 2
test dl, dl
jne 0x406cc0
xor eax, eax
jmp 0x406ce5
sbb eax, eax
or eax, 1
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
test eax, eax
je 0x406d1d
push dword [0x43cfac]
call esi
push 2
push dword [0x43cfac]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [ebp - 0x7f]
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 0x61], 0
push eax
push dword [ebp - 0x164]
call fcn.004097d0
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x40]
add eax, 0x11
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406d50
test dl, dl
je 0x406d4c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406d50
add eax, 2
add ecx, 2
test dl, dl
jne 0x406d30
xor eax, eax
jmp 0x406d55
sbb eax, eax
or eax, 1
push dword [0x43cfac]
test eax, eax
je 0x406fa0
call esi
push 2
push dword [0x43cfac]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x61], 0
jmp 0x406d97
push dword [0x43cfac]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43cfac]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x61], 2
movzx eax, byte [ebp - 0x7f]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x164]
call fcn.004097d0
jmp 0x407252
call fcn.00408290
add esp, 0xc
test al, al
je 0x406d79
push dword [0x43cfac]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x406d79
push 0xb
lea eax, [ebp - 0x4c]
mov word [ebp - 0x44], 0
push eax
xorps xmm0, xmm0
mov byte [ebp - 0x42], 0
push str.memb___id
movq qword [ebp - 0x4c], xmm0
call fcn.004085a0
lea ecx, [ebp - 0x4c]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406e15
test dl, dl
je 0x406e11
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406e15
add eax, 2
add ecx, 2
test dl, dl
jne 0x406df5
xor eax, eax
jmp 0x406e1a
sbb eax, eax
or eax, 1
test eax, eax
je 0x406e50
push dword [0x43cfac]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43cfac]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [ebp - 0x7f]
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 0x61], 0
push eax
push dword [ebp - 0x164]
call fcn.004097d0
push str.memb__pwd
call fcn.004084e0
mov esi, eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
cmp esi, 0xffffffff
je 0x406ed0
shl esi, 0xd
xor edx, edx
add esi, 0x43dbce
mov dword [ebp - 0x170], 0x30
xor eax, eax
mov dword [ebp - 0x16c], eax
mov cl, byte [eax + esi]
test cl, cl
je 0x406ed0
test al, 1
jne 0x406eaa
cmp cl, 0x41
mov eax, 0x37
cmovl eax, dword [ebp - 0x170]
sub cl, al
shl cl, 4
mov byte [ebp + edx - 0x5c], cl
jmp 0x406ebe
cmp cl, 0x41
jl 0x406eb4
sub cl, 0x37
jmp 0x406eb7
sub cl, 0x30
lea eax, [ebp - 0x5c]
or byte [eax + edx], cl
inc edx
mov eax, dword [ebp - 0x16c]
inc eax
mov dword [ebp - 0x16c], eax
cmp edx, 0x10
jl 0x406e85
mov ecx, edi
mov byte [ebp - 0xc4], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x12c], 0x67452301
mov dword [ebp - 0x128], 0xefcdab89
lea edx, [ecx + 1]
mov dword [ebp - 0x124], 0x98badcfe
mov dword [ebp - 0x120], 0x10325476
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406f18
sub ecx, edx
xor esi, esi
xor edx, edx
mov dword [ebp - 0x16c], esi
test ecx, ecx
jle 0x406f44
nop
movsx eax, byte [edx + edi]
add esi, 0x11
inc edx
add esi, eax
cmp edx, ecx
jl 0x406f30
mov dword [ebp - 0x16c], esi
mov eax, ecx
xorps xmm0, xmm0
shl eax, 4
add eax, ecx
mov ecx, dword [ebp - 0x16c]
sub ecx, eax
sub ecx, 0x56
movzx eax, cl
lea ecx, [ebp - 0x160]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x168]
add eax, 0x11
push eax
movups xmmword [ebp - 0x28], xmm0
call fcn.004013f0
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x5c]
cmp al, byte [ebp + ecx - 0x28]
jne 0x40721d
inc ecx
cmp ecx, 0x10
jl 0x406f80
push dword [0x43cfac]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
push 2
push dword [0x43cfac]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.SELECT_sno__numb_bloc_code_FROM_MEMB_INFO_WHERE_memb___id_s
push 0x43cfa0
call fcn.00408290
add esp, 0xc
test al, al
je 0x407210
push dword [0x43cfac]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407210
push 0xe
lea eax, [ebp - 0x6f]
push eax
push str.sno__numb
call fcn.004085a0
push str.bloc_code
call fcn.004084e0
cmp eax, 0xffffffff
jne 0x407004
or eax, eax
jmp 0x407015
shl eax, 0xd
add eax, 0x43dbce
push eax
call fcn.004176e2
add esp, 4
push dword [0x43cfac]
mov byte [ebp - 0x60], al
call esi
push 2
push dword [0x43cfac]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push 0x509cf4
push 0x509d5c
push 0x509d28
push str.SELECT__s_FROM__s_WHERE__s_s
push 0x43cfa0
call fcn.00408290
add esp, 0x18
test al, al
je 0x407210
push dword [0x43cfac]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407210
push 0x509d28
call fcn.004084e0
cmp eax, 0xffffffff
jne 0x407081
or eax, eax
jmp 0x407092
shl eax, 0xd
add eax, 0x43dbce
push eax
call fcn.004176e2
add esp, 4
push dword [0x43cfac]
mov word [ebp - 0x5e], ax
call esi
push 2
push dword [0x43cfac]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
imul ecx, dword [ebp - 0x164], 0x70
mov eax, dword [ebp - 0x168]
add eax, 0x1c
push eax
mov dword [ebp - 0x170], ecx
lea eax, [ecx + 0x509ef8]
push eax
push edi
push str.EXEC_WZ_CONNECT_MEMB__s__s__s
push 0x43cfa0
call fcn.00408290
add esp, 0x14
push dword [0x43cfac]
call esi
push 2
push dword [0x43cfac]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x43cb30
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x43cb4c]
push 0x43cb30
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0x61a80
jg 0x40712b
movzx eax, byte [ebp - 0x7f]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x164]
call fcn.004097d0
push edi
lea eax, [ebp - 0xc0]
push 0xb
push eax
call fcn.004111f3
mov esi, dword [ebp - 0x168]
add esp, 0xc
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0xb5]
push 0x10
push eax
call fcn.004111f3
movzx eax, word [esi + 4]
sub esp, 0x34
movups xmm0, xmmword [ebp - 0xc0]
mov word [ebp - 0xa4], ax
mov eax, dword [ebp - 0x170]
mov byte [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0xffffffff
movzx eax, word [eax + 0x509f2c]
mov word [ebp - 0xa2], ax
xor eax, eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov eax, esp
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0xb0]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [ebp - 0xa0]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x90]
movups xmmword [eax + 0x30], xmm0
call fcn.00403ba0
movzx eax, word [ebp - 0xa2]
push eax
lea eax, [ebp - 0xb5]
push eax
lea eax, [ebp - 0xc0]
push eax
push str._AccountInfo__Account_connected__Account:__s__IpAddress:__s__GameServerCode:__d_
push 1
push 0x43cb70
call fcn.00407880
add esp, 0x18
jmp 0x407252
push dword [0x43cfac]
call esi
jmp 0x406d85
push dword [0x43cfac]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
jmp 0x406d65
push 0x24
lea eax, [ebp - 0x80]
mov byte [ebp - 0x61], 2
push eax
push edx
call fcn.004097d0
push edi
lea eax, [esi + 0x1c]
push eax
push str.__s__account__s_syntax_block
push 0
call fcn.0040a420
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040c493
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret