Function at 0x407320
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x4295f0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
movzx ecx, word [esi + 4]
mov edx, dword [esi + 6]
push edi
lea edi, [esi + 6]
mov word [ebp - 0x38], cx
movzx ecx, word [edi + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 4]
mov word [ebp - 0x2e], cx
mov ecx, dword [esi + 0x15]
mov dword [ebp - 0x36], edx
mov dl, byte [edi + 0xa]
mov dword [ebp - 0x32], eax
mov eax, dword [esi + 0x11]
mov dword [ebp - 0x27], ecx
lea ecx, [ebp - 0x84]
mov byte [ebp - 0x2c], dl
mov dx, word [esi + 0x19]
mov dword [ebp - 0x2b], eax
mov al, byte [esi + 0x1b]
push ecx
mov bl, 4
mov ecx, edi
mov word [ebp - 0x3c], 0x34c1
mov byte [ebp - 0x3a], bl
mov word [ebp - 0x23], dx
mov byte [ebp - 0x21], al
mov byte [ebp - 0x12], 1
call fcn.00402d00
test al, al
jne 0x4073ab
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
push edx
push eax
jmp 0x407549
cmp byte [ebp - 0x64], 0
je 0x407541
mov eax, dword [esi + 0x20]
cmp eax, dword [ebp - 0x54]
jne 0x407541
mov ecx, dword [esi + 0x24]
cmp ecx, dword [ebp - 0x50]
jne 0x407541
mov edx, dword [esi + 0x28]
cmp edx, dword [ebp - 0x4c]
jne 0x407541
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebp - 0x48]
jne 0x407541
push edi
push str.SELECT_sno__numb_bloc_code_FROM_MEMB_INFO_WHERE_memb___id_s
mov ecx, 0x42e1c8
call fcn.004084a0
add esp, 8
test al, al
je 0x40752e
mov ecx, dword [0x42e1d4]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40752e
lea edx, [ebp - 0x20]
push edx
push str.sno__numb
mov ebx, 0xe
call fcn.004086c0
mov ebx, str.bloc_code
call fcn.00408660
mov byte [ebp - 0x11], al
call fcn.00408640
mov ax, word [ebp - 0x5c]
mov cx, word [ebp - 0x58]
mov dl, byte [ebp - 0x56]
push edi
push 0x42dfa4
push 0x42e00c
mov word [ebp - 0x10], ax
mov al, byte [ebp - 0x55]
mov word [ebp - 0xe], cx
push 0x42dfd8
push str.SELECT__s_FROM__s_WHERE__s_s
mov ecx, 0x42e1c8
mov byte [ebp - 0xc], dl
mov byte [ebp - 0xb], al
call fcn.004084a0
add esp, 0x14
test al, al
je 0x40751b
mov ecx, dword [0x42e1d4]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40751b
mov ebx, 0x42dfd8
call fcn.00408660
mov word [ebp - 0xa], ax
call fcn.00408640
movzx ebx, byte [ebp - 0x3b]
mov edi, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
push edx
push edi
call fcn.00409bc0
imul edi, edi, 0x70
mov ax, word [esi + 4]
mov cx, word [edi + 0x4f7be4]
mov word [ebp - 0x68], ax
xor eax, eax
mov word [ebp - 0x66], cx
sub esp, 0x40
xor edx, edx
mov edi, esp
mov byte [ebp - 0x64], al
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov ecx, 0x10
lea esi, [ebp - 0x84]
mov dword [ebp - 0x5c], 0xffffffff
rep movsd dword es:[edi], dword [esi]
call fcn.00402e20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040c454
mov esp, ebp
pop ebp
ret
call fcn.00408640
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 0x12], 2
push ecx
jmp 0x40754c
call fcn.00408640
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
push edx
mov byte [ebp - 0x12], 2
push eax
jmp 0x40754c
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x3c]
push ecx
push edx
mov byte [ebp - 0x12], bl
movzx ebx, byte [ebp - 0x3b]
call fcn.00409bc0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c454
mov esp, ebp
pop ebp
ret