Function at 0x405090
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
movzx eax, word [esi + 4]
mov ecx, dword [esi + 6]
lea ebx, [esi + 6]
mov word [ebp - 0x4c], ax
movzx eax, word [ebx + 8]
push edi
mov edi, edx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x4a], ecx
mov cl, byte [ebx + 0xa]
mov word [ebp - 0x42], ax
mov eax, dword [esi + 0x15]
mov dword [ebp - 0x46], edx
mov edx, dword [esi + 0x11]
mov byte [ebp - 0x40], cl
mov cx, word [esi + 0x19]
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x3f], edx
mov dl, byte [esi + 0x1b]
lea eax, [ebp - 0x98]
mov word [ebp - 0x37], cx
push eax
mov ecx, ebx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x50], 0x48c1
mov byte [ebp - 0x4e], 4
mov byte [ebp - 0x35], dl
mov byte [ebp - 0x26], 1
call fcn.00401b20
test al, al
jne 0x405118
lea ecx, [ebp - 0x50]
push ecx
jmp 0x4052b7
cmp byte [ebp - 0x78], 0
jne 0x405127
lea edx, [ebp - 0x50]
push edx
jmp 0x4052b7
mov eax, dword [esi + 0x20]
cmp eax, dword [ebp - 0x68]
jne 0x4052b3
mov ecx, dword [esi + 0x24]
cmp ecx, dword [ebp - 0x64]
jne 0x4052b3
mov edx, dword [esi + 0x28]
cmp edx, dword [ebp - 0x60]
jne 0x4052b3
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebp - 0x5c]
jne 0x4052b3
push ebx
push str.SELECT_sno__numb_bloc_code_FROM_MEMB_INFO_WHERE_memb___id_s
mov ecx, 0x412ca0
call fcn.00406bd0
add esp, 8
test al, al
je 0x4052a4
mov ecx, dword [0x412cac]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4052a4
mov esi, 0xe
lea edi, [ebp - 0x34]
mov eax, str.sno__numb
call fcn.00406e10
mov eax, str.bloc_code
call fcn.00406de0
mov byte [ebp - 0x25], al
call fcn.00406d70
mov dx, word [ebp - 0x70]
mov cl, byte [ebp - 0x6a]
mov ax, word [ebp - 0x6c]
mov word [ebp - 0x24], dx
mov dl, byte [ebp - 0x69]
mov byte [ebp - 0x20], cl
push ebx
push str.EXEC_WZ_GetAccountLevel__s
mov ecx, 0x412ca0
mov word [ebp - 0x22], ax
mov byte [ebp - 0x1f], dl
call fcn.00406bd0
add esp, 8
test al, al
je 0x405291
mov eax, dword [0x412cac]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x405291
mov eax, str.AccountLevel
call fcn.00406de0
mov word [ebp - 0x1e], ax
mov esi, 0x14
lea edi, [ebp - 0x1c]
mov eax, str.AccountExpireDate
call fcn.00406e10
call fcn.00406d70
movzx ebx, byte [ebp - 0x4f]
mov esi, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
push ecx
push esi
call fcn.00408290
imul esi, esi, 0x70
mov edx, dword [ebp - 0x58]
mov ax, word [edx + 4]
mov cx, word [esi + 0x4dbc4c]
mov word [ebp - 0x7c], ax
xor eax, eax
mov word [ebp - 0x7a], cx
sub esp, 0x40
xor edx, edx
mov edi, esp
mov byte [ebp - 0x78], al
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov ecx, 0x10
lea esi, [ebp - 0x98]
mov dword [ebp - 0x70], 0xffffffff
rep movsd dword es:[edi], dword [esi]
call fcn.00401c50
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004091cb
mov esp, ebp
pop ebp
ret
call fcn.00406d70
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 0x26], 2
push ecx
jmp 0x4052bc
call fcn.00406d70
lea edx, [ebp - 0x50]
mov byte [ebp - 0x26], 2
push edx
jmp 0x4052bb
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 0x26], 4
push edi
movzx ebx, byte [ebp - 0x4f]
call fcn.00408290
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004091cb
mov esp, ebp
pop ebp
ret