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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409de0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x160
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x164], edx
mov esi, ecx
mov dword [ebp - 0x168], esi
movzx eax, word [esi + 4]
lea edi, [esi + 6]
movq xmm0, qword [edi]
mov word [ebp - 0x7c], ax
movzx eax, word [edi + 8]
mov word [ebp - 0x72], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x70], al
xor eax, eax
mov word [ebp - 0x80], 0x24c1
mov byte [ebp - 0x7e], 1
movq qword [ebp - 0x7a], xmm0
mov byte [ebp - 0x61], 1
mov cl, byte [edi + eax]
cmp cl, 0x20
je 0x405a69
cmp cl, 0x22
je 0x405a69
cmp cl, 0x27
je 0x405a69
inc eax
cmp eax, 0xb
jl 0x4052f1
mov esi, dword [0x410110]
cmp esi, dword [0x410114]
je 0x40533d
push esi
push edi
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
jne 0x4053ad
add esi, 0x20
cmp esi, dword [0x410114]
jne 0x405323
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x170], esp
push str._a_zA_Z0_9___
call fcn.00403120
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push edi
call fcn.00403120
push 0
mov dword [ebp - 4], 0xffffffff
call fcn.00403aa0
test al, al
jne 0x4053db
cmp dword [0x4dc538], 1
jne 0x4053db
movzx eax, byte [ebp - 0x7f]
mov ecx, dword [ebp - 0x164]
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 0x61], 2
push eax
push ecx
call fcn.00407eb0
mov eax, dword [ebp - 0x168]
push edi
add eax, 0x1c
push eax
push str.__s__account__s_symbol_block
jmp 0x405a83
movzx eax, byte [ebp - 0x7f]
mov ecx, dword [ebp - 0x164]
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 0x61], 2
push eax
push ecx
call fcn.00407eb0
mov eax, dword [ebp - 0x168]
push edi
add eax, 0x1c
push eax
push str.__s__account__s_bad_syntax
jmp 0x405a83
push edi
lea eax, [ebp - 0xc0]
push eax
call fcn.00402060
test al, al
je 0x405463
movzx eax, byte [ebp - 0x7f]
mov ecx, dword [ebp - 0x164]
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 0x61], 3
push eax
push ecx
call fcn.00407eb0
mov ecx, dword [ebp - 0xa2]
call fcn.00408c10
mov edx, eax
test edx, edx
je 0x405a8d
mov ax, word [ebp - 0xb8]
mov cx, word [ebp - 0xa4]
movq xmm0, qword [ebp - 0xc0]
mov word [ebp - 0x1a], ax
mov al, byte [ebp - 0xb6]
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x28]
push 0x12
push eax
push dword [edx + 4]
mov word [ebp - 0x28], 0x12c1
mov byte [ebp - 0x26], 0x30
mov word [ebp - 0x24], cx
movq qword [ebp - 0x22], xmm0
call fcn.00407eb0
jmp 0x405a8d
push 0x4100e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x4100fc]
push 0x4100e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0x61a80
jl 0x4054a5
movzx eax, byte [ebp - 0x7f]
mov ecx, dword [ebp - 0x164]
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 0x61], 4
push eax
push ecx
call fcn.00407eb0
jmp 0x405a8d
cmp dword [0x4dc53c], 0
push edi
push str.SELECT_memb___id__memb__pwd_FROM_MEMB_INFO_WHERE_memb___id_s
push 0x410550
jne 0x405620
call fcn.00406d40
add esp, 0xc
test al, al
je 0x4055e9
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4055e9
push 0xb
lea eax, [ebp - 0x40]
mov word [ebp - 0x38], 0
push eax
xorps xmm0, xmm0
mov byte [ebp - 0x36], 0
push str.memb__pwd
movq qword [ebp - 0x40], xmm0
call fcn.00407000
push 0xb
lea eax, [ebp - 0x34]
mov word [ebp - 0x2c], 0
push eax
xorps xmm0, xmm0
mov byte [ebp - 0x2a], 0
push str.memb___id
movq qword [ebp - 0x34], xmm0
call fcn.00407000
lea ecx, [ebp - 0x34]
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405550
test dl, dl
je 0x40554c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405550
add eax, 2
add ecx, 2
test dl, dl
jne 0x405530
xor eax, eax
jmp 0x405555
sbb eax, eax
or eax, 1
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
test eax, eax
je 0x40558d
push dword [0x41055c]
call esi
push 2
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [ebp - 0x7f]
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 0x61], 0
push eax
push dword [ebp - 0x164]
call fcn.00407eb0
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x40]
add eax, 0x11
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4055c0
test dl, dl
je 0x4055bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4055c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4055a0
xor eax, eax
jmp 0x4055c5
sbb eax, eax
or eax, 1
push dword [0x41055c]
test eax, eax
je 0x405810
call esi
push 2
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x61], 0
jmp 0x405607
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x61], 2
movzx eax, byte [ebp - 0x7f]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x164]
call fcn.00407eb0
jmp 0x405a8d
call fcn.00406d40
add esp, 0xc
test al, al
je 0x4055e9
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4055e9
push 0xb
lea eax, [ebp - 0x4c]
mov word [ebp - 0x44], 0
push eax
xorps xmm0, xmm0
mov byte [ebp - 0x42], 0
push str.memb___id
movq qword [ebp - 0x4c], xmm0
call fcn.00407000
lea ecx, [ebp - 0x4c]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405685
test dl, dl
je 0x405681
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405685
add eax, 2
add ecx, 2
test dl, dl
jne 0x405665
xor eax, eax
jmp 0x40568a
sbb eax, eax
or eax, 1
test eax, eax
je 0x4056c0
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [ebp - 0x7f]
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 0x61], 0
push eax
push dword [ebp - 0x164]
call fcn.00407eb0
push str.memb__pwd
call fcn.00406f90
mov esi, eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
cmp esi, 0xffffffff
je 0x405740
shl esi, 0xd
xor edx, edx
add esi, 0x41117e
mov dword [ebp - 0x170], 0x30
xor eax, eax
mov dword [ebp - 0x16c], eax
mov cl, byte [eax + esi]
test cl, cl
je 0x405740
test al, 1
jne 0x40571a
cmp cl, 0x41
mov eax, 0x37
cmovl eax, dword [ebp - 0x170]
sub cl, al
shl cl, 4
mov byte [ebp + edx - 0x5c], cl
jmp 0x40572e
cmp cl, 0x41
jl 0x405724
sub cl, 0x37
jmp 0x405727
sub cl, 0x30
lea eax, [ebp - 0x5c]
or byte [eax + edx], cl
inc edx
mov eax, dword [ebp - 0x16c]
inc eax
mov dword [ebp - 0x16c], eax
cmp edx, 0x10
jl 0x4056f5
mov ecx, edi
mov byte [ebp - 0xc4], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x12c], 0x67452301
mov dword [ebp - 0x128], 0xefcdab89
lea edx, [ecx + 1]
mov dword [ebp - 0x124], 0x98badcfe
mov dword [ebp - 0x120], 0x10325476
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405788
sub ecx, edx
xor esi, esi
xor edx, edx
mov dword [ebp - 0x16c], esi
test ecx, ecx
jle 0x4057b4
nop
movsx eax, byte [edx + edi]
add esi, 0x11
inc edx
add esi, eax
cmp edx, ecx
jl 0x4057a0
mov dword [ebp - 0x16c], esi
mov eax, ecx
xorps xmm0, xmm0
shl eax, 4
add eax, ecx
mov ecx, dword [ebp - 0x16c]
sub ecx, eax
sub ecx, 0x56
movzx eax, cl
lea ecx, [ebp - 0x160]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x168]
add eax, 0x11
push eax
movups xmmword [ebp - 0x28], xmm0
call fcn.00401300
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x5c]
cmp al, byte [ebp + ecx - 0x28]
jne 0x405a58
inc ecx
cmp ecx, 0x10
jl 0x4057f0
push dword [0x41055c]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
push 2
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.SELECT_sno__numb_bloc_code_FROM_MEMB_INFO_WHERE_memb___id_s
push 0x410550
call fcn.00406d40
add esp, 0xc
test al, al
je 0x405a4b
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x405a4b
push 0xe
lea eax, [ebp - 0x6f]
push eax
push str.sno__numb
call fcn.00407000
push str.bloc_code
call fcn.00406f90
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x40587b
or eax, 0xffffffff
jmp 0x405889
shl eax, 0xd
add eax, 0x41117e
push eax
call esi
add esp, 4
push dword [0x41055c]
mov byte [ebp - 0x60], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x4dc578
call fcn.00406f90
cmp eax, 0xffffffff
jne 0x4058b9
or eax, eax
jmp 0x4058c7
shl eax, 0xd
add eax, 0x41117e
push eax
call esi
add esp, 4
push dword [0x41055c]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov word [ebp - 0x5e], ax
call esi
push 2
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
imul ecx, dword [ebp - 0x164], 0x70
mov eax, dword [ebp - 0x168]
add eax, 0x1c
push eax
mov dword [ebp - 0x170], ecx
lea eax, [ecx + 0x4dc748]
push eax
push edi
push str.EXEC_WZ_CONNECT_MEMB__s__s__s
push 0x410550
call fcn.00406d40
add esp, 0x14
push dword [0x41055c]
call esi
push 2
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x4100e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x4100fc]
push 0x4100e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0x61a80
jg 0x405966
movzx eax, byte [ebp - 0x7f]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x164]
call fcn.00407eb0
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea eax, [ebp - 0xc0]
push edi
push 0xb
push eax
call esi
mov edi, dword [ebp - 0x168]
add esp, 0xc
lea eax, [edi + 0x1c]
push eax
lea eax, [ebp - 0xb5]
push 0x10
push eax
call esi
movzx eax, word [edi + 4]
sub esp, 0x34
movups xmm0, xmmword [ebp - 0xc0]
mov word [ebp - 0xa4], ax
mov eax, dword [ebp - 0x170]
mov byte [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0xffffffff
movzx eax, word [eax + 0x4dc77c]
mov word [ebp - 0xa2], ax
xor eax, eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov eax, esp
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0xb0]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [ebp - 0xa0]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x90]
movups xmmword [eax + 0x30], xmm0
call fcn.004021f0
movzx eax, word [ebp - 0xa2]
push eax
lea eax, [ebp - 0xb5]
push eax
lea eax, [ebp - 0xc0]
push eax
push str._AccountInfo__Account_connected__Account:__s__IpAddress:__s__GameServerCode:__d_
push 1
push 0x410120
call fcn.00406340
add esp, 0x18
jmp 0x405a8d
push dword [0x41055c]
call esi
jmp 0x4055f5
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
jmp 0x4055d5
push 0x24
lea eax, [ebp - 0x80]
mov byte [ebp - 0x61], 2
push eax
push edx
call fcn.00407eb0
push edi
lea eax, [esi + 0x1c]
push eax
push str.__s__account__s_syntax_block
push 0
call fcn.00408ac0
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408c87
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret