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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cd98
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x413018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
movzx ecx, word [edi + 4]
mov edx, dword [edi + 6]
lea esi, [edi + 6]
mov word [ebp - 0x70], cx
movzx ecx, word [esi + 8]
mov dword [ebp - 0x190], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x6e], edx
mov dl, byte [esi + 0xa]
mov word [ebp - 0x66], cx
mov dword [ebp - 0x198], edi
mov word [ebp - 0x74], 0x38c1
mov byte [ebp - 0x72], 1
mov dword [ebp - 0x194], esi
mov dword [ebp - 0x6a], eax
mov byte [ebp - 0x64], dl
mov byte [ebp - 0x55], 1
xor ecx, ecx
lea ebx, [ebx]
mov al, byte [esi + ecx]
cmp al, 0x20
je 0x405536
cmp al, 0x22
je 0x405536
cmp al, 0x27
je 0x405536
inc ecx
cmp ecx, 0xb
jl 0x4054f0
test byte [0x4dfe44], 1
jne 0x405583
mov eax, 1
or dword [0x4dfe44], eax
mov dword [ebp - 4], eax
call fcn.00401e70
push 0x40cf60
call fcn.0040bc27
add esp, 4
or ebx, 0xffffffff
mov dword [ebp - 4], ebx
jmp 0x405586
test byte [0x4dfec4], 1
mov byte [ebp - 0x55], 2
jne 0x40556a
or dword [0x4dfec4], 1
mov dword [ebp - 4], 0
call fcn.0040a150
push 0x40d0b0
call fcn.0040bc27
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x190]
movzx ebx, byte [ebp - 0x73]
lea eax, [ebp - 0x74]
push eax
push ecx
push 0x4dfec8
jmp 0x405bdb
or ebx, 0xffffffff
push 0x4dfe48
mov edx, esi
lea ecx, [ebp - 0xec]
call fcn.00402330
test al, al
je 0x405641
test byte [0x4dfec4], 1
mov byte [ebp - 0x55], 3
jne 0x4055d0
or dword [0x4dfec4], 1
mov dword [ebp - 4], 2
call fcn.0040a150
push 0x40d0b0
call fcn.0040bc27
add esp, 4
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x190]
movzx ebx, byte [ebp - 0x73]
lea edx, [ebp - 0x74]
push edx
push eax
push 0x4dfec8
call fcn.0040aa30
lea ecx, [edi + 0x11]
lea eax, [ebp - 0xe1]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405612
test dl, dl
je 0x40560e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405612
add eax, 2
add ecx, 2
test dl, dl
jne 0x4055f2
xor eax, eax
jmp 0x405617
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405be0
movzx ecx, word [ebp - 0x98]
movzx edx, word [ebp - 0x96]
push ecx
lea esi, [ebp - 0xec]
call fcn.00406a90
add esp, 4
jmp 0x405be0
test byte [0x4dfe44], 1
jne 0x40566d
or dword [0x4dfe44], 1
mov dword [ebp - 4], 3
call fcn.00401e70
push 0x40cf60
call fcn.0040bc27
add esp, 4
mov dword [ebp - 4], ebx
lea eax, [edi + 0x2c]
lea ecx, [edi + 0x1c]
push eax
mov dword [ebp - 0x1a4], eax
push ecx
mov eax, 0x4dfe48
mov dword [ebp - 0x19c], ecx
call fcn.004027c0
test al, al
jne 0x4056a3
mov eax, dword [ebp - 0x190]
lea edx, [ebp - 0x74]
push edx
mov byte [ebp - 0x55], 7
push eax
jmp 0x405bd1
call fcn.004047c0
mov edi, eax
lea ebx, [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [edi + 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test byte [0x4dfe78], 1
jne 0x4056e0
or dword [0x4dfe78], 1
call fcn.00407d30
push 0x40d070
call fcn.0040bc27
add esp, 4
movzx ecx, byte [0x4dfebf]
cmp edi, dword [ecx*4 + 0x40e3cc]
jl 0x405704
mov eax, dword [ebp - 0x190]
lea edx, [ebp - 0x74]
push edx
mov byte [ebp - 0x55], 4
push eax
jmp 0x405bd1
cmp dword [0x4e1690], 0
push esi
push str.SELECT_memb___id_memb__pwd_FROM_MEMB_INFO_WHERE_memb___id_s
jne 0x405849
call fcn.00401e40
mov ecx, eax
call fcn.00408e30
add esp, 8
test al, al
je 0x40582d
call fcn.00401e40
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40582d
push 0xb
lea edx, [ebp - 0x20]
xor eax, eax
push edx
push str.memb___id
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov word [ebp - 0x27], ax
call fcn.00401e40
mov edi, eax
call fcn.00409060
lea eax, [ebp - 0x20]
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x405791
test cl, cl
je 0x40578d
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x405791
add esi, 2
add eax, 2
test cl, cl
jne 0x405771
xor eax, eax
jmp 0x405796
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4057b6
call fcn.00401e40
mov esi, eax
call fcn.00408fd0
mov ecx, dword [ebp - 0x190]
lea eax, [ebp - 0x74]
push eax
push ecx
jmp 0x405bcd
push 0xb
lea edx, [ebp - 0x30]
push edx
push str.memb__pwd
call fcn.00401e40
mov edi, eax
call fcn.00409060
mov eax, dword [ebp - 0x198]
add eax, 0x11
mov dword [ebp - 0x1a0], eax
lea ecx, [ebp - 0x30]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405800
test dl, dl
je 0x4057fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405800
add eax, 2
add ecx, 2
test dl, dl
jne 0x4057e0
xor eax, eax
jmp 0x405805
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40597b
call fcn.00401e40
mov esi, eax
call fcn.00408fd0
mov ecx, dword [ebp - 0x190]
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 0x55], 0
push ecx
jmp 0x405bd1
call fcn.00401e40
mov esi, eax
call fcn.00408fd0
mov eax, dword [ebp - 0x190]
lea edx, [ebp - 0x74]
push edx
push eax
jmp 0x405bcd
call fcn.00401e40
mov ecx, eax
call fcn.00408e30
add esp, 8
test al, al
je 0x405bb6
call fcn.00401e40
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x405bb6
push 0xb
lea edx, [ebp - 0x3c]
xor eax, eax
push edx
push str.memb___id
mov byte [ebp - 0x3c], 0
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov word [ebp - 0x33], ax
call fcn.00401e40
mov edi, eax
call fcn.00409060
lea ecx, [ebp - 0x3c]
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4058c5
test dl, dl
je 0x4058c1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4058c5
add eax, 2
add ecx, 2
test dl, dl
jne 0x4058a5
xor eax, eax
jmp 0x4058ca
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40579a
lea edx, [ebp - 0x24]
push edx
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.00401e40
mov ebx, eax
call fcn.004090e0
mov edi, dword [ebp - 0x198]
xor ebx, ebx
add edi, 0x11
mov byte [ebp - 0xf0], bl
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x158], 0x67452301
mov dword [ebp - 0x154], 0xefcdab89
mov dword [ebp - 0x150], 0x98badcfe
mov dword [ebp - 0x14c], 0x10325476
mov dword [ebp - 0x1a0], edi
call fcn.0040baa0
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18c]
push ecx
mov edx, edi
call fcn.00406fd0
test al, al
jne 0x40597b
call fcn.00401e40
mov esi, eax
call fcn.00408fd0
mov eax, dword [ebp - 0x190]
lea edx, [ebp - 0x74]
push edx
mov byte [ebp - 0x55], bl
push eax
jmp 0x405bd1
call fcn.00401e40
mov esi, eax
call fcn.00408fd0
mov ecx, dword [ebp - 0x194]
push ecx
push str.SELECT_sno__numb_bloc_code_FROM_MEMB_INFO_WHERE_memb___id_s
call fcn.00401e40
mov ecx, eax
call fcn.00408e30
add esp, 8
test al, al
je 0x40582d
call fcn.00401e40
mov edx, dword [eax + 0xc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40582d
push 0xe
lea eax, [ebp - 0x63]
push eax
push str.sno__numb
call fcn.00401e40
mov edi, eax
call fcn.00409060
push str.bloc_code
call fcn.00401e40
mov ebx, eax
call fcn.00408ff0
mov byte [ebp - 0x54], al
call fcn.00401e40
mov esi, eax
call fcn.00408fd0
mov ecx, dword [ebp - 0x194]
push ecx
push str.EXEC_WZ_GetAccountLevel__s
call fcn.00401e40
mov ecx, eax
call fcn.00408e30
add esp, 8
test al, al
je 0x40579a
call fcn.00401e40
mov edx, dword [eax + 0xc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40579a
push str.AccountLevel
call fcn.00401e40
mov ebx, eax
call fcn.00408ff0
mov word [ebp - 0x52], ax
push 0x14
lea eax, [ebp - 0x50]
push eax
push str.AccountExpireDate
call fcn.00401e40
mov edi, eax
call fcn.00409060
call fcn.00401e40
mov esi, eax
call fcn.00408fd0
mov edi, dword [ebp - 0x190]
mov ecx, dword [ebp - 0x19c]
imul edi, edi, 0x6c
mov eax, dword [ebp - 0x194]
push ecx
lea edx, [edi + 0x4e17c8]
push edx
push eax
push str.EXEC_WZ_CONNECT_MEMB__s__s__s
call fcn.00401e40
mov ecx, eax
call fcn.00408e30
add esp, 0x10
call fcn.00401e40
mov esi, eax
call fcn.00408fd0
mov edx, dword [ebp - 0x190]
movzx ebx, byte [ebp - 0x73]
lea ecx, [ebp - 0x74]
push ecx
push edx
call fcn.004048d0
push eax
call fcn.0040aa30
mov eax, dword [ebp - 0x194]
mov esi, dword [sym.imp.MSVCR100.dll_strcpy_s]
push eax
lea ecx, [ebp - 0xec]
push 0xb
push ecx
call esi
mov edx, dword [ebp - 0x1a0]
add esp, 0xc
push edx
lea eax, [ebp - 0xe1]
push 0xb
push eax
call esi
mov ecx, dword [ebp - 0x19c]
add esp, 0xc
push ecx
lea edx, [ebp - 0xd6]
push 0x10
push edx
call esi
mov eax, dword [ebp - 0x1a4]
add esp, 0xc
push eax
lea ecx, [ebp - 0xc6]
push 0x2d
push ecx
call esi
mov edx, dword [ebp - 0x198]
mov ax, word [edx + 4]
mov cx, word [edi + 0x4e17fc]
mov word [ebp - 0x98], ax
xor eax, eax
xor edx, edx
mov word [ebp - 0x96], cx
mov byte [ebp - 0x94], al
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 0xffffffff
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
sub esp, 0x6c
mov dword [ebp - 0x78], eax
mov ecx, 0x1e
lea esi, [ebp - 0xec]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004047c0
push eax
call fcn.00402460
movzx eax, word [ebp - 0x96]
push eax
lea ecx, [ebp - 0xd6]
push ecx
lea edx, [ebp - 0xec]
push edx
push str._AccountInfo__Account_connected__Account:__s__IpAddress:__s__GameServerCode:__d_
push 1
call fcn.00401e00
mov ecx, eax
call fcn.00406cf0
add esp, 0x14
jmp 0x405be0
call fcn.00401e40
mov esi, eax
call fcn.00408fd0
mov edx, dword [ebp - 0x190]
lea ecx, [ebp - 0x74]
push ecx
push edx
mov byte [ebp - 0x55], 2
movzx ebx, byte [ebp - 0x73]
call fcn.004048d0
push eax
call fcn.0040aa30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040bb18
mov esp, ebp
pop ebp
ret