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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x42a5f0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
movzx ecx, word [esi + 4]
mov edx, dword [esi + 6]
push edi
lea edi, [esi + 6]
mov dword [ebp - 0x168], eax
mov eax, dword [edi + 4]
mov word [ebp - 0x58], cx
movzx ecx, word [edi + 8]
mov dword [ebp - 0x52], eax
lea eax, [esi + 0x2c]
mov word [ebp - 0x4e], cx
mov dword [ebp - 0x56], edx
mov dl, byte [edi + 0xa]
lea ecx, [esi + 0x1c]
push eax
mov ebx, 1
push ecx
mov dword [ebp - 0x16c], esi
mov word [ebp - 0x5c], 0x38c1
mov byte [ebp - 0x5a], bl
mov byte [ebp - 0x4c], dl
mov byte [ebp - 0x3d], bl
call fcn.00402f30
test al, al
jne 0x405972
mov ecx, dword [ebp - 0x168]
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 0x3d], 7
push ecx
jmp 0x405e52
xor ecx, ecx
mov al, byte [edi + ecx]
cmp al, 0x20
je 0x405e31
cmp al, 0x22
je 0x405e31
cmp al, 0x27
je 0x405e31
add ecx, ebx
cmp ecx, 0xb
jl 0x405974
lea ecx, [ebp - 0xc4]
push ecx
mov ecx, edi
call fcn.00402b20
test al, al
je 0x405a25
mov eax, dword [ebp - 0x168]
movzx ebx, byte [ebp - 0x5b]
lea edx, [ebp - 0x5c]
push edx
push eax
mov byte [ebp - 0x3d], 3
call fcn.0040a510
lea ecx, [esi + 0x11]
lea eax, [ebp - 0xb9]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4059f0
test dl, dl
je 0x4059ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4059f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4059d0
xor eax, eax
jmp 0x4059f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405e5b
movzx ecx, word [ebp - 0x70]
movzx edx, word [ebp - 0x6e]
push ecx
lea esi, [ebp - 0xc4]
call fcn.004061b0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040cf87
mov esp, ebp
pop ebp
ret
push 0x431bb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x431bd8]
push 0x431bb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx edx, byte [0x431c37]
cmp ebx, dword [edx*4 + 0x425234]
jl 0x405a65
mov ecx, dword [ebp - 0x168]
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 0x3d], 4
push ecx
jmp 0x405e52
cmp dword [0x431aa0], 0
push edi
mov ecx, 0x431c40
push str.SELECT_memb___id_memb__pwd_FROM_MEMB_INFO_WHERE_memb___id_s
jne 0x405b6c
call fcn.00408df0
add esp, 8
test al, al
je 0x405b57
mov edx, dword [0x431c4c]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x405b57
xor eax, eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
lea eax, [ebp - 0x20]
push eax
push str.memb___id
mov ebx, 0xb
mov byte [ebp - 0x14], 0
call fcn.00409010
lea ecx, [ebp - 0x20]
mov eax, edi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405af0
test dl, dl
je 0x405aec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405af0
add eax, 2
add ecx, 2
test dl, dl
jne 0x405ad0
xor eax, eax
jmp 0x405af5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405e3e
lea eax, [ebp - 0x14]
push eax
push str.memb__pwd
call fcn.00409010
lea eax, [esi + 0x11]
lea ecx, [ebp - 0x14]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405b31
test dl, dl
je 0x405b2d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405b31
add eax, 2
add ecx, 2
test dl, dl
jne 0x405b11
xor eax, eax
jmp 0x405b36
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405c69
call fcn.00408f90
mov edx, dword [ebp - 0x168]
lea ecx, [ebp - 0x5c]
push ecx
mov byte [ebp - 0x3d], 0
push edx
jmp 0x405e52
call fcn.00408f90
mov ecx, dword [ebp - 0x168]
lea eax, [ebp - 0x5c]
push eax
push ecx
jmp 0x405e4e
call fcn.00408df0
add esp, 8
test al, al
je 0x405e3e
mov edx, dword [0x431c4c]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x405e3e
xor eax, eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
lea eax, [ebp - 0x14]
push eax
push str.memb___id
mov ebx, 0xb
mov byte [ebp - 0x14], 0
call fcn.00409010
lea ecx, [ebp - 0x14]
mov eax, edi
jmp 0x405bc0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405be0
test dl, dl
je 0x405bdc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405be0
add eax, 2
add ecx, 2
test dl, dl
jne 0x405bc0
xor eax, eax
jmp 0x405be5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405e3e
lea ebx, [ebp - 0x24]
mov byte [ebp - 0x24], al
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
call fcn.004090a0
xor eax, eax
lea ebx, [esi + 0x11]
mov esi, edi
mov byte [ebp - 0xc8], 0
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x130], 0x67452301
mov dword [ebp - 0x12c], 0xefcdab89
mov dword [ebp - 0x128], 0x98badcfe
mov dword [ebp - 0x124], 0x10325476
call fcn.0040b470
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
lea edx, [ebp - 0x164]
call fcn.00406690
test al, al
je 0x405b3e
call fcn.00408f90
push edi
push str.SELECT_sno__numb_bloc_code_FROM_MEMB_INFO_WHERE_memb___id_s
mov ecx, 0x431c40
call fcn.00408df0
add esp, 8
test al, al
je 0x405e2c
mov eax, dword [0x431c4c]
mov esi, dword [sym.imp.ODBC32.dll_SQLFetch]
push eax
call esi
cmp ax, 0x64
je 0x405e2c
lea ecx, [ebp - 0x4b]
push ecx
push str.sno__numb
mov ebx, 0xe
call fcn.00409010
mov ebx, str.bloc_code
call fcn.00408fb0
mov byte [ebp - 0x3c], al
call fcn.00408f90
push edi
push str.EXEC_WZ_GetAccountLevel__s
mov ecx, 0x431c40
call fcn.00408df0
add esp, 8
test al, al
je 0x405b57
mov edx, dword [0x431c4c]
push edx
call esi
cmp ax, 0x64
je 0x405b57
mov ebx, str.AccountLevel
call fcn.00408fb0
mov word [ebp - 0x3a], ax
lea eax, [ebp - 0x38]
push eax
push str.AccountExpireDate
mov ebx, 0x14
call fcn.00409010
call fcn.00408f90
mov esi, dword [ebp - 0x168]
mov eax, dword [ebp - 0x16c]
imul esi, esi, 0x70
add eax, 0x1c
push eax
lea ecx, [esi + 0x4fabb8]
push ecx
push edi
push str.EXEC_WZ_CONNECT_MEMB__s__s__s
mov ecx, 0x431c40
call fcn.00408df0
add esp, 0x10
call fcn.00408f90
mov eax, dword [ebp - 0x168]
movzx ebx, byte [ebp - 0x5b]
lea edx, [ebp - 0x5c]
push edx
push eax
call fcn.0040a510
push edi
lea ecx, [ebp - 0xc4]
push 0xb
push ecx
call fcn.0040d68b
mov edi, dword [ebp - 0x16c]
add esp, 0xc
lea eax, [edi + 0x11]
push eax
lea edx, [ebp - 0xb9]
push 0xb
push edx
call fcn.0040d68b
add esp, 0xc
lea eax, [edi + 0x1c]
push eax
lea eax, [ebp - 0xae]
push 0x10
push eax
call fcn.0040d68b
add esp, 0xc
lea eax, [edi + 0x2c]
push eax
lea ecx, [ebp - 0x9e]
push 0x2d
push ecx
call fcn.0040d68b
mov cx, word [esi + 0x4fabec]
mov edx, edi
mov ax, word [edx + 4]
mov word [ebp - 0x70], ax
mov word [ebp - 0x6e], cx
xor eax, eax
sub esp, 0x5c
xor edx, edx
mov edi, esp
mov byte [ebp - 0x6c], al
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 0xffffffff
mov dword [ebp - 0x60], edx
mov ecx, 0x1a
lea esi, [ebp - 0xc4]
rep movsd dword es:[edi], dword [esi]
call fcn.00402c40
movzx eax, word [ebp - 0x6e]
push eax
lea ecx, [ebp - 0xae]
push ecx
lea edx, [ebp - 0xc4]
push edx
push str._AccountInfo__Account_connected__Account:__s__IpAddress:__s__GameServerCode:__d_
push 1
mov ecx, 0x42cd30
call fcn.004063b0
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040cf87
mov esp, ebp
pop ebp
ret
call fcn.00408f90
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0x5c]
push edx
push eax
jmp 0x405e4e
call fcn.00408f90
mov edx, dword [ebp - 0x168]
lea ecx, [ebp - 0x5c]
push ecx
push edx
mov byte [ebp - 0x3d], 2
movzx ebx, byte [ebp - 0x5b]
call fcn.0040a510
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cf87
mov esp, ebp
pop ebp
ret