Function at 0x406130
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cc88
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
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 esi, ecx
movzx ecx, word [esi + 4]
mov edx, dword [esi + 6]
lea ebx, [esi + 6]
mov dword [ebp - 0x70], eax
mov eax, dword [ebx + 4]
mov word [ebp - 0x68], cx
movzx ecx, word [ebx + 8]
mov dword [ebp - 0x66], edx
mov dl, byte [ebx + 0xa]
mov dword [ebp - 0x62], eax
mov eax, dword [esi + 0x11]
mov word [ebp - 0x5e], cx
mov ecx, dword [esi + 0x15]
mov byte [ebp - 0x5c], dl
mov dx, word [esi + 0x19]
mov dword [ebp - 0x50], eax
mov al, byte [esi + 0x1b]
or edi, 0xffffffff
test byte [0x4dfe44], 1
mov dword [ebp - 0x74], esi
mov word [ebp - 0x6c], 0x54c1
mov byte [ebp - 0x6a], 4
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x4c], ecx
mov word [ebp - 0x48], dx
mov byte [ebp - 0x46], al
mov byte [ebp - 0x37], 1
jne 0x4061e8
or dword [0x4dfe44], 1
mov dword [ebp - 4], 0
call fcn.00401e70
push 0x40cf60
call fcn.0040bc27
add esp, 4
mov dword [ebp - 4], edi
push 0x4dfe48
mov edx, ebx
lea ecx, [ebp - 0xf4]
call fcn.00402330
test al, al
jne 0x406222
test byte [0x4dfec4], 1
mov byte [ebp - 0x37], 4
jne 0x4064d2
mov eax, 1
or dword [0x4dfec4], eax
mov dword [ebp - 4], eax
jmp 0x4064bd
cmp byte [ebp - 0x9c], 0
jne 0x406268
test byte [0x4dfec4], 1
mov byte [ebp - 0x37], 4
jne 0x40625b
or dword [0x4dfec4], 1
mov dword [ebp - 4], 2
call fcn.0040a150
push 0x40d0b0
call fcn.0040bc27
add esp, 4
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
push eax
push ecx
jmp 0x4064da
mov eax, dword [ebp - 0xe5]
mov edx, dword [ebp - 0xe9]
mov cx, word [ebp - 0xe1]
mov dword [ebp - 0x57], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x5b], edx
mov dl, byte [ebp - 0xdf]
mov word [ebp - 0x53], cx
mov byte [ebp - 0x51], dl
cmp eax, dword [ebp - 0x8c]
jne 0x4064a2
mov ecx, dword [esi + 0x24]
cmp ecx, dword [ebp - 0x88]
jne 0x4064a2
mov edx, dword [esi + 0x28]
cmp edx, dword [ebp - 0x84]
jne 0x4064a2
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebp - 0x80]
jne 0x4064a2
push ebx
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 0x40647e
call fcn.00401e40
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40647e
push 0xe
lea edx, [ebp - 0x45]
push edx
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 - 0x36], al
call fcn.00401e40
mov esi, eax
call fcn.00408fd0
mov cx, word [ebp - 0x90]
mov ax, word [ebp - 0x94]
mov dl, byte [ebp - 0x8e]
mov word [ebp - 0x32], cx
mov ecx, dword [ebp - 0x78]
mov word [ebp - 0x34], ax
mov al, byte [ebp - 0x8d]
push ecx
push str.EXEC_WZ_GetAccountLevel__s
mov byte [ebp - 0x30], dl
mov byte [ebp - 0x2f], al
call fcn.00401e40
mov ecx, eax
call fcn.00408e30
add esp, 8
test al, al
je 0x40645a
call fcn.00401e40
mov edx, dword [eax + 0xc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40645a
push str.AccountLevel
call fcn.00401e40
mov ebx, eax
call fcn.00408ff0
mov word [ebp - 0x2e], ax
push 0x14
lea eax, [ebp - 0x2c]
push eax
push str.AccountExpireDate
call fcn.00401e40
mov edi, eax
call fcn.00409060
call fcn.00401e40
mov esi, eax
call fcn.00408fd0
mov esi, dword [ebp - 0x70]
movzx ebx, byte [ebp - 0x6b]
lea ecx, [ebp - 0x6c]
push ecx
push esi
call fcn.004048d0
push eax
call fcn.0040aa30
imul esi, esi, 0x6c
mov edx, dword [ebp - 0x74]
mov ax, word [edx + 4]
mov cx, word [esi + 0x4e17fc]
mov word [ebp - 0xa0], ax
xor eax, eax
mov word [ebp - 0x9e], cx
sub esp, 0x78
xor edx, edx
mov byte [ebp - 0x9c], al
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov ecx, 0x1e
lea esi, [ebp - 0xf4]
mov edi, esp
mov dword [ebp - 0x94], 0xffffffff
rep movsd dword es:[edi], dword [esi]
call fcn.004047c0
push eax
call fcn.00402460
jmp 0x4064e8
call fcn.00401e40
mov esi, eax
call fcn.00408fd0
mov ecx, dword [ebp - 0x70]
movzx ebx, byte [ebp - 0x6b]
lea eax, [ebp - 0x6c]
push eax
push ecx
mov byte [ebp - 0x37], 2
call fcn.004048d0
push eax
jmp 0x4064e3
call fcn.00401e40
mov esi, eax
call fcn.00408fd0
mov eax, dword [ebp - 0x70]
movzx ebx, byte [ebp - 0x6b]
lea edx, [ebp - 0x6c]
push edx
push eax
mov byte [ebp - 0x37], 2
call fcn.004048d0
push eax
jmp 0x4064e3
test byte [0x4dfec4], 1
mov byte [ebp - 0x37], 4
jne 0x4064d2
or dword [0x4dfec4], 1
mov dword [ebp - 4], 3
call fcn.0040a150
push 0x40d0b0
call fcn.0040bc27
add esp, 4
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x70]
lea ecx, [ebp - 0x6c]
push ecx
push edx
movzx ebx, byte [ebp - 0x6b]
push 0x4dfec8
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