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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov ax, word [ebx + 4]
mov ecx, dword [ebx + 6]
mov dword [ebp - 0x148], ebx
add ebx, 6
mov word [ebp - 0x58], ax
mov eax, dword [ebx + 4]
push esi
mov dword [ebp - 0x52], eax
mov al, byte [ebx + 0xa]
push edi
mov edi, edx
mov edx, 1
mov dword [ebp - 0x56], ecx
mov cx, word [ebx + 8]
mov byte [ebp - 0x4c], al
mov dword [ebp - 0x144], edi
mov word [ebp - 0x5c], 0x38c1
mov byte [ebp - 0x5a], dl
mov dword [ebp - 0x14c], ebx
mov word [ebp - 0x4e], cx
mov byte [ebp - 0x3d], dl
xor eax, eax
mov cl, byte [ebx + eax]
cmp cl, 0x20
je 0x4044cd
cmp cl, 0x22
je 0x4044cd
cmp cl, 0x27
je 0x4044cd
add eax, edx
cmp eax, 0xb
jl 0x404424
lea edx, [ebp - 0xa0]
push edx
mov ecx, ebx
call fcn.004013f0
test al, al
je 0x4044d7
movzx ebx, byte [ebp - 0x5b]
lea eax, [ebp - 0x5c]
push eax
push edi
mov byte [ebp - 0x3d], 3
call fcn.00408150
mov edx, dword [ebp - 0x82]
call fcn.00408fe0
test eax, eax
je 0x40490f
mov edx, dword [ebp - 0xa0]
mov cx, word [ebp - 0x84]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1e], edx
mov dx, word [ebp - 0x98]
mov word [ebp - 0x20], cx
mov ecx, dword [ebp - 0x9c]
mov word [ebp - 0x16], dx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1a], ecx
mov cl, byte [ebp - 0x96]
push edx
mov ebx, 0x12
mov word [ebp - 0x24], 0x12c1
mov byte [ebp - 0x22], 0x30
mov byte [ebp - 0x14], cl
push eax
jmp 0x40490a
mov ebx, 0x38
jmp 0x404901
push 0x412c58
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x412c78]
push 0x412c58
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0x2710
jl 0x404508
movzx ebx, byte [ebp - 0x5b]
mov byte [ebp - 0x3d], 4
jmp 0x404905
cmp dword [0x412b68], 0
push ebx
mov ecx, 0x412c98
push str.SELECT_memb___id_memb__pwd_FROM_MEMB_INFO_WHERE_memb___id_s
jne 0x40461a
call fcn.00406a90
add esp, 8
test al, al
je 0x4048f8
mov edx, dword [0x412ca4]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4048f8
xor eax, eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
lea esi, [eax + 0xb]
lea edi, [ebp - 0x20]
mov eax, str.memb___id
mov byte [ebp - 0x10], 0
call fcn.00406cd0
mov ecx, edi
mov eax, ebx
jmp 0x404570
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404590
test dl, dl
je 0x40458c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404590
add eax, 2
add ecx, 2
test dl, dl
jne 0x404570
xor eax, eax
jmp 0x404595
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4045b6
call fcn.00406c30
mov ecx, dword [ebp - 0x144]
movzx ebx, byte [ebp - 0x5b]
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 0x3d], 2
push ecx
jmp 0x40490a
lea edi, [ebp - 0x10]
mov eax, str.memb__pwd
call fcn.00406cd0
mov eax, dword [ebp - 0x148]
mov ecx, edi
add eax, 0x11
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4045f0
test dl, dl
je 0x4045ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4045f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4045d0
xor eax, eax
jmp 0x4045f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40472f
call fcn.00406c30
mov eax, dword [ebp - 0x144]
movzx ebx, byte [ebp - 0x5b]
lea edx, [ebp - 0x5c]
push edx
mov byte [ebp - 0x3d], 0
push eax
jmp 0x40490a
call fcn.00406a90
add esp, 8
test al, al
je 0x4048f8
mov edx, dword [0x412ca4]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4048f8
xor eax, eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
lea esi, [eax + 0xb]
lea edi, [ebp - 0x10]
mov eax, str.memb___id
mov byte [ebp - 0x10], 0
call fcn.00406cd0
mov ecx, edi
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404685
test dl, dl
je 0x404681
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404685
add eax, 2
add ecx, 2
test dl, dl
jne 0x404665
xor eax, eax
jmp 0x40468a
sbb eax, eax
sbb eax, 0xffffffff
xor edi, edi
cmp eax, edi
jne 0x404599
xor eax, eax
lea esi, [ebp - 0x24]
mov byte [ebp - 0x24], 0
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.00406d10
mov esi, ebx
mov byte [ebp - 0xa4], 0
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0x10c], 0x67452301
mov dword [ebp - 0x108], 0xefcdab89
mov dword [ebp - 0x104], 0x98badcfe
mov dword [ebp - 0x100], 0x10325476
call fcn.00409040
push eax
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x148]
lea eax, [ebp - 0x140]
add edx, 0x11
push eax
call fcn.004055b0
test al, al
jne 0x40472f
call fcn.00406c30
mov edx, dword [ebp - 0x144]
movzx ebx, byte [ebp - 0x5b]
lea ecx, [ebp - 0x5c]
push ecx
mov byte [ebp - 0x3d], 0
push edx
jmp 0x40490a
call fcn.00406c30
push ebx
push str.SELECT_sno__numb_bloc_code_FROM_MEMB_INFO_WHERE_memb___id_s
mov ecx, 0x412c98
call fcn.00406a90
add esp, 8
test al, al
je 0x4048de
mov eax, dword [0x412ca4]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4048de
mov esi, 0xe
lea edi, [ebp - 0x4b]
mov eax, str.sno__numb
call fcn.00406cd0
mov eax, str.bloc_code
call fcn.00406ca0
mov byte [ebp - 0x3c], al
call fcn.00406c30
push ebx
push str.EXEC_WZ_GetAccountLevel__s
mov ecx, 0x412c98
call fcn.00406a90
add esp, 8
test al, al
je 0x404599
mov ecx, dword [0x412ca4]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x404599
mov eax, str.AccountLevel
call fcn.00406ca0
mov word [ebp - 0x3a], ax
mov esi, 0x14
lea edi, [ebp - 0x38]
mov eax, str.AccountExpireDate
call fcn.00406cd0
call fcn.00406c30
mov esi, dword [ebp - 0x144]
mov edi, dword [ebp - 0x148]
imul esi, esi, 0x70
add edi, 0x1c
push edi
lea edx, [esi + 0x4dbc10]
push edx
push ebx
push str.EXEC_WZ_CONNECT_MEMB__s__s__s
mov ecx, 0x412c98
call fcn.00406a90
add esp, 0x10
call fcn.00406c30
mov ecx, dword [ebp - 0x144]
movzx ebx, byte [ebp - 0x5b]
lea eax, [ebp - 0x5c]
push eax
push ecx
call fcn.00408150
mov edx, dword [ebp - 0x14c]
mov ebx, dword [sym.imp.MSVCR100.dll_strcpy_s]
push edx
lea eax, [ebp - 0xa0]
push 0xb
push eax
call ebx
add esp, 0xc
push edi
lea ecx, [ebp - 0x95]
push 0x10
push ecx
call ebx
mov edx, dword [ebp - 0x148]
mov ax, word [edx + 4]
mov cx, word [esi + 0x4dbc44]
mov word [ebp - 0x84], ax
xor eax, eax
mov word [ebp - 0x82], cx
sub esp, 0x34
xor edx, edx
mov edi, esp
mov byte [ebp - 0x80], al
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 0xffffffff
mov dword [ebp - 0x74], edx
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.00401520
movzx eax, word [ebp - 0x82]
push eax
lea ecx, [ebp - 0x95]
push ecx
lea edx, [ebp - 0xa0]
push edx
push str._AccountInfo__Account_connected__Account:__s__IpAddress:__s__GameServerCode:__d_
push 1
mov ecx, 0x40f200
call fcn.004052d0
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040908b
mov esp, ebp
pop ebp
ret
call fcn.00406c30
mov eax, dword [ebp - 0x144]
movzx ebx, byte [ebp - 0x5b]
lea edx, [ebp - 0x5c]
push edx
mov byte [ebp - 0x3d], 2
push eax
jmp 0x40490a
call fcn.00406c30
movzx ebx, byte [ebp - 0x5b]
mov byte [ebp - 0x3d], 2
lea ecx, [ebp - 0x5c]
push ecx
push edi
call fcn.00408150
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040908b
mov esp, ebp
pop ebp
ret