Function at 0x406a80
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 0x42d7b0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x160
mov eax, dword [0x43f014]
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 0x4072fe
cmp cl, 0x22
je 0x4072fe
cmp cl, 0x27
je 0x4072fe
inc eax
cmp eax, 0xb
jl 0x406b01
mov esi, dword [0x43fb00]
cmp esi, dword [0x43fb04]
je 0x406b50
push esi
push edi
call fcn.0040d840
add esp, 8
test eax, eax
jne 0x406c0f
add esi, 0x20
cmp esi, dword [0x43fb04]
jne 0x406b33
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 [0x43ab94]
mov dword [ecx + 8], eax
mov al, byte [0x43ab98]
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 0x406bb4
sub ecx, esi
push ecx
push edi
mov ecx, edx
call fcn.00402d20
push 0
mov dword [ebp - 4], 0xffffffff
call fcn.00405230
test al, al
jne 0x406c3d
cmp dword [0x50cd18], 1
jne 0x406c3d
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.004095c0
mov eax, dword [ebp - 0x168]
push edi
add eax, 0x1c
push eax
push str.__s__account__s_symbol_block
jmp 0x407318
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.004095c0
mov eax, dword [ebp - 0x168]
push edi
add eax, 0x1c
push eax
push str.__s__account__s_bad_syntax
jmp 0x407318
push edi
lea eax, [ebp - 0xc0]
push eax
call fcn.004039c0
test al, al
je 0x406cc5
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.004095c0
mov ecx, dword [ebp - 0xa2]
call fcn.0040a340
mov edx, eax
test edx, edx
je 0x407322
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.004095c0
jmp 0x407322
push 0x43fad0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x43faec]
push 0x43fad0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0x61a80
jl 0x406d07
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.004095c0
jmp 0x407322
cmp dword [0x50cd1c], 0
push edi
push str.SELECT_memb___id__memb__pwd_FROM_MEMB_INFO_WHERE_memb___id_s
push 0x43ff40
jne 0x406e80
call fcn.00408430
add esp, 0xc
test al, al
je 0x406e49
push dword [0x43ff4c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x406e49
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.00408740
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.00408740
lea ecx, [ebp - 0x34]
mov eax, edi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406db0
test dl, dl
je 0x406dac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406db0
add eax, 2
add ecx, 2
test dl, dl
jne 0x406d90
xor eax, eax
jmp 0x406db5
sbb eax, eax
or eax, 1
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
test eax, eax
je 0x406ded
push dword [0x43ff4c]
call esi
push 2
push dword [0x43ff4c]
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.004095c0
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x40]
add eax, 0x11
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406e20
test dl, dl
je 0x406e1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406e20
add eax, 2
add ecx, 2
test dl, dl
jne 0x406e00
xor eax, eax
jmp 0x406e25
sbb eax, eax
or eax, 1
push dword [0x43ff4c]
test eax, eax
je 0x407070
call esi
push 2
push dword [0x43ff4c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x61], 0
jmp 0x406e67
push dword [0x43ff4c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ff4c]
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.004095c0
jmp 0x407322
call fcn.00408430
add esp, 0xc
test al, al
je 0x406e49
push dword [0x43ff4c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x406e49
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.00408740
lea ecx, [ebp - 0x4c]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406ee5
test dl, dl
je 0x406ee1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406ee5
add eax, 2
add ecx, 2
test dl, dl
jne 0x406ec5
xor eax, eax
jmp 0x406eea
sbb eax, eax
or eax, 1
test eax, eax
je 0x406f20
push dword [0x43ff4c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ff4c]
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.004095c0
push str.memb__pwd
call fcn.00408680
mov esi, eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
cmp esi, 0xffffffff
je 0x406fa0
shl esi, 0xd
xor edx, edx
add esi, 0x440b6e
mov dword [ebp - 0x170], 0x30
xor eax, eax
mov dword [ebp - 0x16c], eax
mov cl, byte [eax + esi]
test cl, cl
je 0x406fa0
test al, 1
jne 0x406f7a
cmp cl, 0x41
mov eax, 0x37
cmovl eax, dword [ebp - 0x170]
sub cl, al
shl cl, 4
mov byte [ebp + edx - 0x5c], cl
jmp 0x406f8e
cmp cl, 0x41
jl 0x406f84
sub cl, 0x37
jmp 0x406f87
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 0x406f55
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 0x406fe8
sub ecx, edx
xor esi, esi
xor edx, edx
mov dword [ebp - 0x16c], esi
test ecx, ecx
jle 0x407014
nop
movsx eax, byte [edx + edi]
add esi, 0x11
inc edx
add esi, eax
cmp edx, ecx
jl 0x407000
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.004013d0
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x5c]
cmp al, byte [ebp + ecx - 0x28]
jne 0x4072ed
inc ecx
cmp ecx, 0x10
jl 0x407050
push dword [0x43ff4c]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
push 2
push dword [0x43ff4c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.SELECT_sno__numb_bloc_code_FROM_MEMB_INFO_WHERE_memb___id_s
push 0x43ff40
call fcn.00408430
add esp, 0xc
test al, al
je 0x4072e0
push dword [0x43ff4c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4072e0
push 0xe
lea eax, [ebp - 0x6f]
push eax
push str.sno__numb
call fcn.00408740
push str.bloc_code
call fcn.00408680
cmp eax, 0xffffffff
jne 0x4070d4
or eax, eax
jmp 0x4070e5
shl eax, 0xd
add eax, 0x440b6e
push eax
call fcn.0041737b
add esp, 4
push dword [0x43ff4c]
mov byte [ebp - 0x60], al
call esi
push 2
push dword [0x43ff4c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push 0x50cd24
push 0x50cd8c
push 0x50cd58
push str.SELECT__s_FROM__s_WHERE__s_s
push 0x43ff40
call fcn.00408430
add esp, 0x18
test al, al
je 0x4072e0
push dword [0x43ff4c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4072e0
push 0x50cd58
call fcn.00408680
cmp eax, 0xffffffff
jne 0x407151
or eax, eax
jmp 0x407162
shl eax, 0xd
add eax, 0x440b6e
push eax
call fcn.0041737b
add esp, 4
push dword [0x43ff4c]
mov word [ebp - 0x5e], ax
call esi
push 2
push dword [0x43ff4c]
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 + 0x50cf28]
push eax
push edi
push str.EXEC_WZ_CONNECT_MEMB__s__s__s
push 0x43ff40
call fcn.00408430
add esp, 0x14
push dword [0x43ff4c]
call esi
push 2
push dword [0x43ff4c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x43fad0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x43faec]
push 0x43fad0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0x61a80
jg 0x4071fb
movzx eax, byte [ebp - 0x7f]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x164]
call fcn.004095c0
push edi
lea eax, [ebp - 0xc0]
push 0xb
push eax
call fcn.00410f63
mov esi, dword [ebp - 0x168]
add esp, 0xc
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0xb5]
push 0x10
push eax
call fcn.00410f63
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 + 0x50cf5c]
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.00403b80
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 0x43fb10
call fcn.00407a30
add esp, 0x18
jmp 0x407322
push dword [0x43ff4c]
call esi
jmp 0x406e55
push dword [0x43ff4c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
jmp 0x406e35
push 0x24
lea eax, [ebp - 0x80]
mov byte [ebp - 0x61], 2
push eax
push edx
call fcn.004095c0
push edi
lea eax, [esi + 0x1c]
push eax
push str.__s__account__s_syntax_block
push 0
call fcn.0040a200
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.0040c25d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret