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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
lea edx, [eax + 6]
push esi
push edi
mov edi, ecx
mov cx, word [eax + 4]
mov dword [ebp - 0x150], eax
mov eax, dword [edx]
mov word [ebp - 0x5c], cx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x5a], eax
mov ax, word [edx + 8]
mov dword [ebp - 0x56], ecx
mov cl, byte [edx + 0xa]
mov word [ebp - 0x52], ax
mov dword [ebp - 0x148], edi
mov ebx, 0x38
mov word [ebp - 0x60], 0x38c1
mov byte [ebp - 0x5e], 1
mov dword [ebp - 0x14c], edx
mov byte [ebp - 0x50], cl
mov byte [ebp - 0x41], 1
xor eax, eax
jmp 0x404750
mov cl, byte [edx + eax]
cmp cl, 0x20
je 0x4047f8
cmp cl, 0x22
je 0x4047f8
cmp cl, 0x27
je 0x4047f8
inc eax
cmp eax, 0xb
jl 0x404750
lea eax, [ebp - 0xa4]
push eax
mov ecx, edx
call fcn.00401b20
test al, al
je 0x404801
movzx ebx, byte [ebp - 0x5f]
lea ecx, [ebp - 0x60]
push ecx
push edi
mov byte [ebp - 0x41], 3
call fcn.00408290
mov edx, dword [ebp - 0x86]
call fcn.00409120
test eax, eax
je 0x404d2f
mov dx, word [ebp - 0x88]
mov ecx, dword [ebp - 0xa4]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x22], ecx
mov cx, word [ebp - 0x9c]
mov dword [ebp - 0x1e], edx
mov dl, byte [ebp - 0x9a]
mov word [ebp - 0x1a], cx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x18], dl
mov edx, dword [eax + 4]
push ecx
mov ebx, 0x12
mov word [ebp - 0x28], 0x12c1
mov byte [ebp - 0x26], 0x30
push edx
jmp 0x404d2a
lea edx, [ebp - 0x60]
push edx
jmp 0x404d25
push 0x412c64
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x412c84]
push 0x412c64
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0x2710
jl 0x404836
movzx ebx, byte [ebp - 0x5f]
lea eax, [ebp - 0x60]
mov byte [ebp - 0x41], 4
push eax
jmp 0x404d29
cmp dword [0x412b74], 0
mov ebx, dword [ebp - 0x14c]
push ebx
mov ecx, 0x412ca0
push str.SELECT_memb___id_memb__pwd_FROM_MEMB_INFO_WHERE_memb___id_s
jne 0x4049bb
call fcn.00406bd0
add esp, 8
test al, al
je 0x4049ad
mov ecx, dword [0x412cac]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4049ad
xor eax, eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
lea esi, [eax + 0xb]
lea edi, [ebp - 0x24]
mov eax, str.memb___id
mov byte [ebp - 0x14], 0
call fcn.00406e10
mov ecx, edi
mov eax, ebx
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4048c0
test dl, dl
je 0x4048bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4048c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4048a0
xor eax, eax
jmp 0x4048c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4048e6
call fcn.00406d70
mov eax, dword [ebp - 0x148]
movzx ebx, byte [ebp - 0x5f]
lea edx, [ebp - 0x60]
push edx
mov byte [ebp - 0x41], 2
push eax
jmp 0x404d2a
lea edi, [ebp - 0x14]
mov eax, str.memb__pwd
call fcn.00406e10
mov esi, dword [ebp - 0x150]
add esi, 0x11
mov ecx, edi
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404920
test dl, dl
je 0x40491c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404920
add eax, 2
add ecx, 2
test dl, dl
jne 0x404900
xor eax, eax
jmp 0x404925
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404976
mov ecx, 0x412b68
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404950
test dl, dl
je 0x40494c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404950
add eax, 2
add ecx, 2
test dl, dl
jne 0x404930
xor eax, eax
jmp 0x404955
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404976
call fcn.00406d70
mov edx, dword [ebp - 0x148]
movzx ebx, byte [ebp - 0x5f]
lea ecx, [ebp - 0x60]
push ecx
mov byte [ebp - 0x41], 0
push edx
jmp 0x404d2a
call fcn.00406d70
mov ecx, 0x412b68
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404b32
test dl, dl
je 0x4049a6
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404b32
add eax, 2
add ecx, 2
test dl, dl
jne 0x404982
xor eax, eax
jmp 0x404b37
call fcn.00406d70
lea eax, [ebp - 0x60]
push eax
jmp 0x404d21
call fcn.00406bd0
add esp, 8
test al, al
je 0x404d18
mov ecx, dword [0x412cac]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x404d18
xor eax, eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
lea esi, [eax + 0xb]
lea edi, [ebp - 0x14]
mov eax, str.memb___id
mov byte [ebp - 0x14], 0
call fcn.00406e10
mov ecx, edi
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404a26
test dl, dl
je 0x404a22
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404a26
add eax, 2
add ecx, 2
test dl, dl
jne 0x404a06
xor eax, eax
jmp 0x404a2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4048c9
lea esi, [ebp - 0x28]
mov byte [ebp - 0x28], al
xor edi, edi
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov word [ebp - 0x1b], ax
mov byte [ebp - 0x19], al
call fcn.00406e50
mov dword [ebp - 0x100], edi
mov dword [ebp - 0xfc], edi
mov edi, dword [ebp - 0x150]
mov esi, ebx
mov byte [ebp - 0xa8], 0
mov dword [ebp - 0x110], 0x67452301
mov dword [ebp - 0x10c], 0xefcdab89
mov dword [ebp - 0x108], 0x98badcfe
mov dword [ebp - 0x104], 0x10325476
add edi, 0x11
call fcn.00409180
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x144]
push edx
mov edx, edi
call fcn.004059d0
test al, al
jne 0x404b06
mov ecx, 0x412b68
mov eax, edi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404ae0
test dl, dl
je 0x404adc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404ae0
add eax, 2
add ecx, 2
test dl, dl
jne 0x404ac0
xor eax, eax
jmp 0x404ae5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404b06
call fcn.00406d70
mov ecx, dword [ebp - 0x148]
movzx ebx, byte [ebp - 0x5f]
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 0x41], 0
push ecx
jmp 0x404d2a
call fcn.00406d70
mov ecx, 0x412b68
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404b32
test dl, dl
je 0x404b2e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404b32
add eax, 2
add ecx, 2
test dl, dl
jne 0x404b12
xor eax, eax
jmp 0x404b37
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404b4b
push ebx
push str.Account__s_logged_with_global_password_
push 1
call fcn.00408ea0
add esp, 0xc
push ebx
push str.SELECT_sno__numb_bloc_code_FROM_MEMB_INFO_WHERE_memb___id_s
mov ecx, 0x412ca0
call fcn.00406bd0
add esp, 8
test al, al
je 0x4048c9
mov edx, dword [0x412cac]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4048c9
mov esi, 0xe
lea edi, [ebp - 0x4f]
mov eax, str.sno__numb
call fcn.00406e10
mov eax, str.bloc_code
call fcn.00406de0
mov byte [ebp - 0x40], al
call fcn.00406d70
push ebx
push str.EXEC_WZ_GetAccountLevel__s
mov ecx, 0x412ca0
call fcn.00406bd0
add esp, 8
test al, al
je 0x404cfe
mov eax, dword [0x412cac]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x404cfe
mov eax, str.AccountLevel
call fcn.00406de0
mov word [ebp - 0x3e], ax
mov esi, 0x14
lea edi, [ebp - 0x3c]
mov eax, str.AccountExpireDate
call fcn.00406e10
call fcn.00406d70
mov esi, dword [ebp - 0x148]
mov edi, dword [ebp - 0x150]
imul esi, esi, 0x70
mov edx, dword [ebp - 0x14c]
add edi, 0x1c
push edi
lea ecx, [esi + 0x4dbc18]
push ecx
push edx
push str.EXEC_WZ_CONNECT_MEMB__s__s__s
mov ecx, 0x412ca0
call fcn.00406bd0
add esp, 0x10
call fcn.00406d70
mov ecx, dword [ebp - 0x148]
movzx ebx, byte [ebp - 0x5f]
lea eax, [ebp - 0x60]
push eax
push ecx
call fcn.00408290
mov edx, dword [ebp - 0x14c]
mov ebx, dword [sym.imp.MSVCR100.dll_strcpy_s]
push edx
lea eax, [ebp - 0xa4]
push 0xb
push eax
call ebx
add esp, 0xc
push edi
lea ecx, [ebp - 0x99]
push 0x10
push ecx
call ebx
mov edx, dword [ebp - 0x150]
mov ax, word [edx + 4]
mov cx, word [esi + 0x4dbc4c]
mov word [ebp - 0x88], ax
xor eax, eax
mov word [ebp - 0x86], cx
sub esp, 0x34
xor edx, edx
mov edi, esp
mov byte [ebp - 0x84], al
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], 0xffffffff
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov ecx, 0x10
lea esi, [ebp - 0xa4]
rep movsd dword es:[edi], dword [esi]
call fcn.00401c50
movzx eax, word [ebp - 0x86]
push eax
lea ecx, [ebp - 0x99]
push ecx
lea edx, [ebp - 0xa4]
push edx
push str._AccountInfo__Account_connected__Account:__s__IpAddress:__s__GameServerCode:__d_
push 1
mov ecx, 0x40f200
call fcn.004056f0
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004091cb
mov esp, ebp
pop ebp
ret
call fcn.00406d70
mov ecx, dword [ebp - 0x148]
movzx ebx, byte [ebp - 0x5f]
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 0x41], 2
push ecx
jmp 0x404d2a
call fcn.00406d70
lea ecx, [ebp - 0x60]
push ecx
movzx ebx, byte [ebp - 0x5f]
mov byte [ebp - 0x41], 2
push edi
call fcn.00408290
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004091cb
mov esp, ebp
pop ebp
ret