Function at 0x405a00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b598
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x411018]
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 esi, ecx
movzx ecx, word [esi + 4]
mov edx, dword [esi + 6]
lea ebx, [esi + 6]
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 4]
mov word [ebp - 0x58], cx
movzx ecx, word [ebx + 8]
mov dword [ebp - 0x56], edx
mov dl, byte [ebx + 0xa]
mov dword [ebp - 0x52], eax
mov eax, dword [esi + 0x11]
mov word [ebp - 0x4e], cx
mov ecx, dword [esi + 0x15]
mov byte [ebp - 0x4c], dl
mov dx, word [esi + 0x19]
mov dword [ebp - 0x4b], eax
mov al, byte [esi + 0x1b]
or edi, 0xffffffff
test byte [0x4dc904], 1
mov dword [ebp - 0x64], esi
mov word [ebp - 0x5c], 0x48c1
mov byte [ebp - 0x5a], 4
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x47], ecx
mov word [ebp - 0x43], dx
mov byte [ebp - 0x41], al
mov byte [ebp - 0x32], 1
jne 0x405ab8
or dword [0x4dc904], 1
mov dword [ebp - 4], 0
call fcn.00401070
push 0x40b8b0
call fcn.0040a590
add esp, 4
mov dword [ebp - 4], edi
push 0x4dc908
mov edx, ebx
lea ecx, [ebp - 0xe4]
call fcn.00401530
test al, al
jne 0x405b0b
test byte [0x4dc938], 1
mov byte [ebp - 0x32], 4
jne 0x405afe
mov eax, 1
or dword [0x4dc938], eax
mov dword [ebp - 4], eax
call fcn.00408b50
push 0x40b9f0
call fcn.0040a590
add esp, 4
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
push ecx
push edx
jmp 0x405d66
cmp byte [ebp - 0x8c], 0
jne 0x405b38
test byte [0x4dc938], 1
mov byte [ebp - 0x32], 4
jne 0x405d5e
or dword [0x4dc938], 1
mov dword [ebp - 4], 2
jmp 0x405d49
mov edx, dword [esi + 0x20]
cmp edx, dword [ebp - 0x7c]
jne 0x405d2e
mov eax, dword [esi + 0x24]
cmp eax, dword [ebp - 0x78]
jne 0x405d2e
mov ecx, dword [esi + 0x28]
cmp ecx, dword [ebp - 0x74]
jne 0x405d2e
mov edx, dword [esi + 0x2c]
cmp edx, dword [ebp - 0x70]
jne 0x405d2e
push ebx
push str.SELECT_sno__numb_bloc_code_FROM_MEMB_INFO_WHERE_memb___id_s
call fcn.00401040
mov ecx, eax
call fcn.00407890
add esp, 8
test al, al
je 0x405d0a
call fcn.00401040
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x405d0a
push 0xe
lea ecx, [ebp - 0x40]
push ecx
push str.sno__numb
call fcn.00401040
mov edi, eax
call fcn.00407ac0
push str.bloc_code
call fcn.00401040
mov ebx, eax
call fcn.00407a50
mov byte [ebp - 0x31], al
call fcn.00401040
mov esi, eax
call fcn.00407a30
mov ax, word [ebp - 0x80]
mov dx, word [ebp - 0x84]
mov cl, byte [ebp - 0x7e]
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x68]
mov word [ebp - 0x30], dx
mov dl, byte [ebp - 0x7d]
push eax
push str.EXEC_WZ_GetAccountLevel__s
mov byte [ebp - 0x2c], cl
mov byte [ebp - 0x2b], dl
call fcn.00401040
mov ecx, eax
call fcn.00407890
add esp, 8
test al, al
je 0x405ce6
call fcn.00401040
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x405ce6
push str.AccountLevel
call fcn.00401040
mov ebx, eax
call fcn.00407a50
push 0x14
lea edx, [ebp - 0x28]
push edx
push str.AccountExpireDate
mov word [ebp - 0x2a], ax
call fcn.00401040
mov edi, eax
call fcn.00407ac0
call fcn.00401040
mov esi, eax
call fcn.00407a30
mov esi, dword [ebp - 0x60]
movzx ebx, byte [ebp - 0x5b]
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.00403f20
push eax
call fcn.00409430
imul esi, esi, 0x6c
mov ax, word [esi + 0x4de26c]
mov ecx, dword [ebp - 0x64]
mov dx, word [ecx + 4]
xor ecx, ecx
mov word [ebp - 0x8e], ax
xor eax, eax
mov dword [ebp - 0x80], ecx
sub esp, 0x78
mov word [ebp - 0x90], dx
mov byte [ebp - 0x8c], al
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov ecx, 0x1e
lea esi, [ebp - 0xe4]
mov edi, esp
mov dword [ebp - 0x84], 0xffffffff
rep movsd dword es:[edi], dword [esi]
call fcn.00403e10
push eax
call fcn.00401660
jmp 0x405d74
call fcn.00401040
mov esi, eax
call fcn.00407a30
mov eax, dword [ebp - 0x60]
movzx ebx, byte [ebp - 0x5b]
lea edx, [ebp - 0x5c]
push edx
push eax
mov byte [ebp - 0x32], 2
call fcn.00403f20
push eax
jmp 0x405d6f
call fcn.00401040
mov esi, eax
call fcn.00407a30
mov edx, dword [ebp - 0x60]
movzx ebx, byte [ebp - 0x5b]
lea ecx, [ebp - 0x5c]
push ecx
push edx
mov byte [ebp - 0x32], 2
call fcn.00403f20
push eax
jmp 0x405d6f
test byte [0x4dc938], 1
mov byte [ebp - 0x32], 4
jne 0x405d5e
or dword [0x4dc938], 1
mov dword [ebp - 4], 3
call fcn.00408b50
push 0x40b9f0
call fcn.0040a590
add esp, 4
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
push eax
push ecx
movzx ebx, byte [ebp - 0x5b]
push 0x4dc940
call fcn.00409430
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.0040a4e0
mov esp, ebp
pop ebp
ret