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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4201bb
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x4295f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ax, word [esi + 4]
mov ecx, dword [esi + 6]
mov dword [ebp - 0x148], esi
add esi, 6
mov word [ebp - 0x58], ax
mov eax, dword [esi + 4]
mov dword [ebp - 0x56], ecx
mov cx, word [esi + 8]
mov dword [ebp - 0x52], eax
mov al, byte [esi + 0xa]
mov word [ebp - 0x4e], cx
xor edi, edi
mov dword [ebp - 0x144], edx
mov ebx, 0x24
mov word [ebp - 0x5c], 0x24c1
mov byte [ebp - 0x5a], 1
mov byte [ebp - 0x4c], al
mov byte [ebp - 0x3d], 1
xor ecx, ecx
jmp 0x4069a0
mov al, byte [esi + ecx]
cmp al, 0x20
je 0x406a98
cmp al, 0x22
je 0x406a98
cmp al, 0x27
je 0x406a98
inc ecx
cmp ecx, 0xb
jl 0x4069a0
mov ebx, dword [0x42aa34]
cmp ebx, dword [0x42aa38]
je 0x4069ed
nop
push ebx
push esi
call fcn.0040ccf0
add esp, 8
test eax, eax
jne 0x406ac5
add ebx, 0x20
cmp ebx, dword [0x42aa38]
jne 0x4069d0
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x150], esp
push 0xd
mov ebx, 0xf
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], edi
push str._a_zA_Z0_9___
mov byte [ecx], 0
call fcn.004042f0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 4], edi
mov dword [ecx + 0x14], ebx
mov eax, esi
mov dword [ecx + 0x10], edi
mov dword [ebp - 0x14c], esp
mov byte [ecx], 0
lea ebx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406a30
sub eax, ebx
push eax
push esi
call fcn.004042f0
mov dword [ebp - 4], 0xffffffff
call fcn.004058f0
test al, al
jne 0x406afc
cmp dword [0x42df98], 1
jne 0x406afc
mov ecx, dword [ebp - 0x144]
movzx ebx, byte [ebp - 0x5b]
lea eax, [ebp - 0x5c]
push eax
push ecx
mov byte [ebp - 0x3d], 2
call fcn.00409bc0
mov edx, dword [ebp - 0x148]
push esi
add edx, 0x1c
push edx
push str.__s__account__s_symbol_block
push 0
call fcn.0040a7b0
add esp, 0x10
jmp 0x406fb3
lea ecx, [ebp - 0x5c]
push ecx
push edx
mov byte [ebp - 0x3d], 2
call fcn.00409bc0
mov edx, dword [ebp - 0x148]
push esi
add edx, 0x1c
push edx
push str.__s__account__s_syntax_block
push 0
call fcn.0040a7b0
add esp, 0x10
jmp 0x406fb3
mov ecx, dword [ebp - 0x144]
movzx ebx, byte [ebp - 0x5b]
lea eax, [ebp - 0x5c]
push eax
push ecx
mov byte [ebp - 0x3d], 2
call fcn.00409bc0
mov edx, dword [ebp - 0x148]
push esi
add edx, 0x1c
push edx
push str.__s__account__s_bad_syntax
push 0
call fcn.0040a7b0
add esp, 0x10
jmp 0x406fb3
lea eax, [ebp - 0xa0]
push eax
mov ecx, esi
call fcn.00402d00
test al, al
je 0x406b48
mov edx, dword [ebp - 0x144]
movzx ebx, byte [ebp - 0x5b]
lea ecx, [ebp - 0x5c]
push ecx
push edx
mov byte [ebp - 0x3d], 3
call fcn.00409bc0
movzx eax, word [ebp - 0x84]
movzx edx, word [ebp - 0x82]
push eax
lea esi, [ebp - 0xa0]
call fcn.00407780
add esp, 4
jmp 0x406fb3
push 0x42e188
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x42e1a8]
push 0x42e188
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0x61a80
jl 0x406b80
mov edx, dword [ebp - 0x144]
lea ecx, [ebp - 0x5c]
push ecx
mov byte [ebp - 0x3d], 4
push edx
jmp 0x406faa
push esi
mov ecx, 0x42e1c8
push str.SELECT_memb___id__memb__pwd_FROM_MEMB_INFO_WHERE_memb___id_s
cmp dword [0x42df9c], edi
jne 0x406cad
call fcn.004084a0
add esp, 8
test al, al
je 0x406c98
mov eax, dword [0x42e1d4]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x406c98
xor eax, eax
lea ecx, [ebp - 0x1c]
push ecx
push str.memb__pwd
lea ebx, [eax + 0xb]
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
call fcn.004086c0
xor eax, eax
lea edx, [ebp - 0x2c]
push edx
push str.memb___id
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov word [ebp - 0x23], ax
call fcn.004086c0
lea ecx, [ebp - 0x2c]
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406c20
test dl, dl
je 0x406c1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406c20
add eax, 2
add ecx, 2
test dl, dl
jne 0x406c00
xor eax, eax
jmp 0x406c25
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406c46
call fcn.00408640
mov ecx, dword [ebp - 0x144]
movzx ebx, byte [ebp - 0x5b]
lea eax, [ebp - 0x5c]
push eax
push ecx
mov byte [ebp - 0x3d], 0
call fcn.00409bc0
mov eax, dword [ebp - 0x148]
lea ecx, [ebp - 0x1c]
add eax, 0x11
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406c72
test dl, dl
je 0x406c6e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406c72
add eax, 2
add ecx, 2
test dl, dl
jne 0x406c52
xor eax, eax
jmp 0x406c77
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406dd9
call fcn.00408640
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x5c]
push edx
mov byte [ebp - 0x3d], 0
push eax
jmp 0x406faa
call fcn.00408640
mov edx, dword [ebp - 0x144]
lea ecx, [ebp - 0x5c]
push ecx
push edx
jmp 0x406fa6
call fcn.004084a0
add esp, 8
test al, al
je 0x406f96
mov eax, dword [0x42e1d4]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x406f96
xor eax, eax
lea ecx, [ebp - 0x38]
push ecx
push str.memb___id
lea ebx, [eax + 0xb]
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov word [ebp - 0x2f], ax
call fcn.004086c0
lea ecx, [ebp - 0x38]
mov eax, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406d20
test dl, dl
je 0x406d1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406d20
add eax, 2
add ecx, 2
test dl, dl
jne 0x406d00
xor eax, eax
jmp 0x406d25
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406d46
call fcn.00408640
mov eax, dword [ebp - 0x144]
movzx ebx, byte [ebp - 0x5b]
lea edx, [ebp - 0x5c]
push edx
push eax
mov byte [ebp - 0x3d], 0
call fcn.00409bc0
xor eax, eax
lea ebx, [ebp - 0x20]
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
call fcn.00408750
xor ebx, ebx
mov byte [ebp - 0xa4], bl
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0x10c], 0x67452301
mov dword [ebp - 0x108], 0xefcdab89
mov dword [ebp - 0x104], 0x98badcfe
mov dword [ebp - 0x100], 0x10325476
call fcn.0040aa30
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x148]
add ecx, 0x11
lea edx, [ebp - 0x140]
call fcn.004010d0
test al, al
jne 0x406dd9
call fcn.00408640
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x5c]
push edx
mov byte [ebp - 0x3d], bl
push eax
jmp 0x406faa
call fcn.00408640
push esi
push str.SELECT_sno__numb_bloc_code_FROM_MEMB_INFO_WHERE_memb___id_s
mov ecx, 0x42e1c8
call fcn.004084a0
add esp, 8
test al, al
je 0x406c98
mov ecx, dword [0x42e1d4]
mov edi, dword [sym.imp.ODBC32.dll_SQLFetch]
push ecx
call edi
cmp ax, 0x64
je 0x406c98
lea edx, [ebp - 0x4b]
push edx
push str.sno__numb
mov ebx, 0xe
call fcn.004086c0
mov ebx, str.bloc_code
call fcn.00408660
mov byte [ebp - 0x3c], al
call fcn.00408640
push esi
push 0x42dfa4
push 0x42e00c
push 0x42dfd8
push str.SELECT__s_FROM__s_WHERE__s_s
mov ecx, 0x42e1c8
call fcn.004084a0
add esp, 0x14
test al, al
je 0x406f84
mov eax, dword [0x42e1d4]
push eax
call edi
cmp ax, 0x64
je 0x406f84
mov ebx, 0x42dfd8
call fcn.00408660
mov word [ebp - 0x3a], ax
call fcn.00408640
mov edi, dword [ebp - 0x144]
mov eax, dword [ebp - 0x148]
imul edi, edi, 0x70
add eax, 0x1c
push eax
lea ecx, [edi + 0x4f7bb0]
push ecx
push esi
push str.EXEC_WZ_CONNECT_MEMB__s__s__s
mov ecx, 0x42e1c8
call fcn.004084a0
add esp, 0x10
call fcn.00408640
call fcn.00403100
cmp eax, 0x61a80
jg 0x406ed8
mov eax, dword [ebp - 0x144]
movzx ebx, byte [ebp - 0x5b]
lea edx, [ebp - 0x5c]
push edx
push eax
call fcn.00409bc0
push esi
lea ecx, [ebp - 0xa0]
push 0xb
push ecx
call fcn.0040c463
mov eax, dword [ebp - 0x148]
add esp, 0xc
add eax, 0x1c
push eax
lea edx, [ebp - 0x95]
push 0x10
push edx
call fcn.0040c463
mov eax, dword [ebp - 0x148]
mov cx, word [eax + 4]
mov dx, word [edi + 0x4f7be4]
mov word [ebp - 0x84], cx
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x74], ecx
sub esp, 0x34
mov edi, esp
mov word [ebp - 0x82], dx
mov byte [ebp - 0x80], al
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 0xffffffff
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov ecx, 0x10
lea esi, [ebp - 0xa0]
rep movsd dword es:[edi], dword [esi]
call fcn.00402e20
movzx edx, word [ebp - 0x82]
push edx
lea eax, [ebp - 0x95]
push eax
lea ecx, [ebp - 0xa0]
push ecx
push str._AccountInfo__Account_connected__Account:__s__IpAddress:__s__GameServerCode:__d_
push 1
mov ecx, 0x42aa48
call fcn.00407a30
add esp, 0x14
jmp 0x406fb3
call fcn.00408640
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x5c]
push edx
push eax
jmp 0x406fa6
call fcn.00408640
mov ecx, dword [ebp - 0x144]
lea eax, [ebp - 0x5c]
push eax
push ecx
mov byte [ebp - 0x3d], 2
movzx ebx, byte [ebp - 0x5b]
call fcn.00409bc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c454
mov esp, ebp
pop ebp
ret