Function at 0x406ad0
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 0x42cbe0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x160
mov eax, dword [0x43b040]
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 0x40734e
cmp cl, 0x22
je 0x40734e
cmp cl, 0x27
je 0x40734e
inc eax
cmp eax, 0xb
jl 0x406b51
mov esi, dword [0x43bb60]
cmp esi, dword [0x43bb64]
je 0x406ba0
push esi
push edi
call fcn.0040d8d0
add esp, 8
test eax, eax
jne 0x406c5f
add esi, 0x20
cmp esi, dword [0x43bb64]
jne 0x406b83
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 0x406c04
sub ecx, esi
push ecx
push edi
mov ecx, edx
call fcn.00402d20
push 0
mov dword [ebp - 4], 0xffffffff
call fcn.004051f0
test al, al
jne 0x406c8d
cmp dword [0x508d80], 1
jne 0x406c8d
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.00409570
mov eax, dword [ebp - 0x168]
push edi
add eax, 0x1c
push eax
push str.__s__account__s_symbol_block
jmp 0x407368
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.00409570
mov eax, dword [ebp - 0x168]
push edi
add eax, 0x1c
push eax
push str.__s__account__s_bad_syntax
jmp 0x407368
push edi
lea eax, [ebp - 0xc0]
push eax
call fcn.004039c0
test al, al
je 0x406d15
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.00409570
mov ecx, dword [ebp - 0xa2]
call fcn.0040a300
mov edx, eax
test edx, edx
je 0x407372
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.00409570
jmp 0x407372
push 0x43bb30
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x43bb4c]
push 0x43bb30
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0x61a80
jl 0x406d57
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.00409570
jmp 0x407372
cmp dword [0x508d84], 0
push edi
push str.SELECT_memb___id__memb__pwd_FROM_MEMB_INFO_WHERE_memb___id_s
push 0x43bfa0
jne 0x406ed0
call fcn.004083b0
add esp, 0xc
test al, al
je 0x406e99
push dword [0x43bfac]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x406e99
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.004086c0
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.004086c0
lea ecx, [ebp - 0x34]
mov eax, edi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406e00
test dl, dl
je 0x406dfc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406e00
add eax, 2
add ecx, 2
test dl, dl
jne 0x406de0
xor eax, eax
jmp 0x406e05
sbb eax, eax
or eax, 1
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
test eax, eax
je 0x406e3d
push dword [0x43bfac]
call esi
push 2
push dword [0x43bfac]
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.00409570
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x40]
add eax, 0x11
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406e70
test dl, dl
je 0x406e6c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406e70
add eax, 2
add ecx, 2
test dl, dl
jne 0x406e50
xor eax, eax
jmp 0x406e75
sbb eax, eax
or eax, 1
push dword [0x43bfac]
test eax, eax
je 0x4070c0
call esi
push 2
push dword [0x43bfac]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x61], 0
jmp 0x406eb7
push dword [0x43bfac]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43bfac]
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.00409570
jmp 0x407372
call fcn.004083b0
add esp, 0xc
test al, al
je 0x406e99
push dword [0x43bfac]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x406e99
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.004086c0
lea ecx, [ebp - 0x4c]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406f35
test dl, dl
je 0x406f31
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406f35
add eax, 2
add ecx, 2
test dl, dl
jne 0x406f15
xor eax, eax
jmp 0x406f3a
sbb eax, eax
or eax, 1
test eax, eax
je 0x406f70
push dword [0x43bfac]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43bfac]
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.00409570
push str.memb__pwd
call fcn.00408600
mov esi, eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
cmp esi, 0xffffffff
je 0x406ff0
shl esi, 0xd
xor edx, edx
add esi, 0x43cbce
mov dword [ebp - 0x170], 0x30
xor eax, eax
mov dword [ebp - 0x16c], eax
mov cl, byte [eax + esi]
test cl, cl
je 0x406ff0
test al, 1
jne 0x406fca
cmp cl, 0x41
mov eax, 0x37
cmovl eax, dword [ebp - 0x170]
sub cl, al
shl cl, 4
mov byte [ebp + edx - 0x5c], cl
jmp 0x406fde
cmp cl, 0x41
jl 0x406fd4
sub cl, 0x37
jmp 0x406fd7
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 0x406fa5
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 0x407038
sub ecx, edx
xor esi, esi
xor edx, edx
mov dword [ebp - 0x16c], esi
test ecx, ecx
jle 0x407064
nop
movsx eax, byte [edi + edx]
add esi, 0x11
inc edx
add esi, eax
cmp edx, ecx
jl 0x407050
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 0x40733d
inc ecx
cmp ecx, 0x10
jl 0x4070a0
push dword [0x43bfac]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
push 2
push dword [0x43bfac]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.SELECT_sno__numb_bloc_code_FROM_MEMB_INFO_WHERE_memb___id_s
push 0x43bfa0
call fcn.004083b0
add esp, 0xc
test al, al
je 0x407330
push dword [0x43bfac]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407330
push 0xe
lea eax, [ebp - 0x6f]
push eax
push str.sno__numb
call fcn.004086c0
push str.bloc_code
call fcn.00408600
cmp eax, 0xffffffff
jne 0x407124
or eax, eax
jmp 0x407135
shl eax, 0xd
add eax, 0x43cbce
push eax
call fcn.004174e2
add esp, 4
push dword [0x43bfac]
mov byte [ebp - 0x60], al
call esi
push 2
push dword [0x43bfac]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push 0x508d8c
push 0x508df4
push 0x508dc0
push str.SELECT__s_FROM__s_WHERE__s_s
push 0x43bfa0
call fcn.004083b0
add esp, 0x18
test al, al
je 0x407330
push dword [0x43bfac]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407330
push 0x508dc0
call fcn.00408600
cmp eax, 0xffffffff
jne 0x4071a1
or eax, eax
jmp 0x4071b2
shl eax, 0xd
add eax, 0x43cbce
push eax
call fcn.004174e2
add esp, 4
push dword [0x43bfac]
mov word [ebp - 0x5e], ax
call esi
push 2
push dword [0x43bfac]
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 + 0x508f90]
push eax
push edi
push str.EXEC_WZ_CONNECT_MEMB__s__s__s
push 0x43bfa0
call fcn.004083b0
add esp, 0x14
push dword [0x43bfac]
call esi
push 2
push dword [0x43bfac]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x43bb30
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x43bb4c]
push 0x43bb30
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0x61a80
jg 0x40724b
movzx eax, byte [ebp - 0x7f]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x164]
call fcn.00409570
push edi
lea eax, [ebp - 0xc0]
push 0xb
push eax
call fcn.00410ff3
mov esi, dword [ebp - 0x168]
add esp, 0xc
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0xb5]
push 0x10
push eax
call fcn.00410ff3
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 + 0x508fc4]
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 0x43bb70
call fcn.004079a0
add esp, 0x18
jmp 0x407372
push dword [0x43bfac]
call esi
jmp 0x406ea5
push dword [0x43bfac]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
jmp 0x406e85
push 0x24
lea eax, [ebp - 0x80]
mov byte [ebp - 0x61], 2
push eax
push edx
call fcn.00409570
push edi
lea eax, [esi + 0x1c]
push eax
push str.__s__account__s_syntax_block
push 0
call fcn.0040a1b0
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.0040c2a3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret